--- source: cynic-querygen/tests/github-tests.rs expression: "document_to_fragment_structs(query, schema,\n &QueryGenOptions::default()).expect(\"QueryGen Failed\")" --- #[derive(cynic::QueryVariables, Debug)] pub struct PullRequestTitlesVariables { pub pr_order: IssueOrder, } #[derive(cynic::QueryFragment, Debug)] #[cynic(graphql_type = "Query", variables = "PullRequestTitlesVariables")] pub struct PullRequestTitles { #[arguments(name: "cynic", owner: "obmarg")] pub repository: Option, } #[derive(cynic::QueryFragment, Debug)] #[cynic(variables = "PullRequestTitlesVariables")] pub struct Repository { #[arguments(orderBy: $pr_order)] pub pull_requests: PullRequestConnection, } #[derive(cynic::QueryFragment, Debug)] pub struct PullRequestConnection { pub nodes: Option>>, } #[derive(cynic::QueryFragment, Debug)] pub struct PullRequest { pub title: String, } #[derive(cynic::Enum, Clone, Copy, Debug)] pub enum IssueOrderField { Comments, CreatedAt, UpdatedAt, } #[derive(cynic::Enum, Clone, Copy, Debug)] pub enum OrderDirection { Asc, Desc, } #[derive(cynic::InputObject, Debug)] pub struct IssueOrder { pub direction: OrderDirection, pub field: IssueOrderField, }