--- source: cynic-querygen/tests/misc-tests.rs expression: "document_to_fragment_structs(query, schema,\n &QueryGenOptions::default()).expect(\"QueryGen Failed\")" --- #[derive(cynic::QueryVariables, Debug)] pub struct MyQueryVariables { pub id: Uuid, } #[derive(cynic::QueryFragment, Debug)] #[cynic(graphql_type = "Foo", variables = "MyQueryVariables")] pub struct MyQuery { #[arguments(id: $id)] pub bar: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct Bar { pub id: Uuid, pub name: Option, } #[derive(cynic::Scalar, Debug, Clone)] #[cynic(graphql_type = "UUID")] pub struct Uuid(pub String);