Require query variables to be Copy

This commit is contained in:
Kiana Sheibani 2023-10-02 20:34:54 -04:00
parent 23ecce06d5
commit 07f95ddd17
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
5 changed files with 7 additions and 7 deletions

View file

@ -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,

View file

@ -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,
}

View file

@ -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,
}

View file

@ -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.