Require query variables to be Copy
This commit is contained in:
parent
23ecce06d5
commit
07f95ddd17
5 changed files with 7 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ pub type Teams<T> = Vec<Vec<T>>;
|
|||
|
||||
// Variables
|
||||
|
||||
#[derive(cynic::QueryVariables, Debug, Clone)]
|
||||
#[derive(cynic::QueryVariables, Debug, Copy, Clone)]
|
||||
pub struct EventSetsVars {
|
||||
pub event: EventId,
|
||||
pub page: i32,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use schema::schema;
|
|||
|
||||
// Variables
|
||||
|
||||
#[derive(cynic::QueryVariables, Debug, Clone)]
|
||||
#[derive(cynic::QueryVariables, Debug, Copy, Clone)]
|
||||
pub struct PlayerInfoVars {
|
||||
pub id: PlayerId,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use schema::schema;
|
|||
|
||||
// Variables
|
||||
|
||||
#[derive(cynic::QueryVariables, Debug, Clone)]
|
||||
#[derive(cynic::QueryVariables, Debug, Copy, Clone)]
|
||||
pub struct VideogameSearchVars<'a> {
|
||||
pub name: &'a str,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use schema::schema;
|
|||
|
||||
// Variables
|
||||
|
||||
#[derive(cynic::QueryVariables, Debug, Clone)]
|
||||
#[derive(cynic::QueryVariables, Debug, Copy, Clone)]
|
||||
pub struct TournamentEventsVars<'a> {
|
||||
// HACK: This should really be an optional variable, but there seems to be a
|
||||
// server-side bug that completely breaks everything when this isn't passed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue