--- source: cynic-querygen/tests/starwars-tests.rs expression: "document_to_fragment_structs(query, schema,\n &QueryGenOptions::default()).expect(\"QueryGen Failed\")" --- #[derive(cynic::QueryVariables, Debug)] pub struct SingleFilmVariables<'a> { pub id: &'a cynic::Id, } #[derive(cynic::QueryFragment, Debug)] #[cynic(graphql_type = "Root", variables = "SingleFilmVariables")] pub struct SingleFilm { #[arguments(id: $id)] pub film: Option, } #[derive(cynic::QueryFragment, Debug)] #[cynic(graphql_type = "Root")] pub struct StarshipsAndFilms { pub all_starships: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct StarshipsConnection { pub starships: Option>>, } #[derive(cynic::QueryFragment, Debug)] pub struct Starship { pub id: cynic::Id, pub starship_class: Option, pub film_connection: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct StarshipFilmsConnection { pub films: Option>>, } #[derive(cynic::QueryFragment, Debug)] #[cynic(graphql_type = "Root")] pub struct PlanetsAndFilms { pub all_planets: Option, } #[derive(cynic::QueryFragment, Debug)] #[cynic(graphql_type = "Root")] pub struct AllFilms { pub all_films: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct PlanetsConnection { pub planets: Option>>, } #[derive(cynic::QueryFragment, Debug)] pub struct Planet { pub film_connection: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct PlanetFilmsConnection { pub films: Option>>, } #[derive(cynic::QueryFragment, Debug)] pub struct FilmsConnection { pub films: Option>>, } #[derive(cynic::QueryFragment, Debug)] #[cynic(graphql_type = "Film")] pub struct Film2 { pub id: cynic::Id, pub title: Option, pub edited: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct Film { pub id: cynic::Id, pub title: Option, }