From 5f522473aa960c7929056e03b2e2c817f291a9e3 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Fri, 3 Nov 2023 18:11:39 -0400 Subject: [PATCH] Make scalar types transparent --- src/queries/scalars.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/queries/scalars.rs b/src/queries/scalars.rs index 5a8fa25..ab27151 100644 --- a/src/queries/scalars.rs +++ b/src/queries/scalars.rs @@ -8,23 +8,29 @@ use schema::schema; #[derive(cynic::Scalar, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cynic(graphql_type = "ID")] +#[repr(transparent)] pub struct VideogameId(pub u64); #[derive(cynic::Scalar, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cynic(graphql_type = "ID")] +#[repr(transparent)] pub struct EventId(pub u64); #[derive(cynic::Scalar, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cynic(graphql_type = "ID")] +#[repr(transparent)] pub struct EntrantId(pub u64); #[derive(cynic::Scalar, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cynic(graphql_type = "ID")] +#[repr(transparent)] pub struct PlayerId(pub u64); #[derive(cynic::Scalar, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cynic(graphql_type = "ID")] +#[repr(transparent)] pub struct SetId(pub u64); #[derive(cynic::Scalar, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[repr(transparent)] pub struct Timestamp(pub u64);