--- 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 RepoIssues { #[arguments(owner: "obmarg", name: "cynic")] pub repository: Option, } #[derive(cynic::QueryFragment, Debug)] pub struct Repository { #[arguments(states: "OPEN", first: 10)] pub issues: IssueConnection, } #[derive(cynic::QueryFragment, Debug)] pub struct IssueConnection { pub nodes: Option>>, } #[derive(cynic::QueryFragment, Debug)] pub struct Issue { pub title: String, pub state: IssueState, } #[derive(cynic::Enum, Clone, Copy, Debug)] pub enum IssueState { Closed, Open, }