--- source: cynic-querygen/tests/github-tests.rs expression: "document_to_fragment_structs(query, schema,\n &QueryGenOptions::default()).expect(\"QueryGen Failed\")" --- #[derive(cynic::QueryFragment, Debug)] #[cynic(graphql_type = "Query")] pub struct UnnamedQuery { #[arguments(owner: "obmarg", name: "cynic")] pub repository: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct Repository { #[arguments(number: 1)] pub issue_or_pull_request: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct PullRequest { pub id: cynic::Id, pub title: String, } #[derive(cynic::QueryFragment, Debug)] pub struct Issue { pub id: cynic::Id, pub title: String, pub last_edited_at: Option, } #[derive(cynic::InlineFragments, Debug)] pub enum IssueOrPullRequest { Issue(Issue), PullRequest(PullRequest), #[cynic(fallback)] Unknown } #[derive(cynic::Scalar, Debug, Clone)] pub struct DateTime(pub String);