synd_api/client/github/generated/
query.rs1#![allow(clippy::all, warnings)]
2pub struct Authenticate;
3pub mod authenticate {
4 #![allow(dead_code)]
5 use std::result::Result;
6 pub const OPERATION_NAME: &str = "Authenticate";
7 pub const QUERY: &str = "query Authenticate {\n viewer {\n email,\n }\n}\n";
8 use super::*;
9 use serde::{Deserialize, Serialize};
10 #[allow(dead_code)]
11 type Boolean = bool;
12 #[allow(dead_code)]
13 type Float = f64;
14 #[allow(dead_code)]
15 type Int = i64;
16 #[allow(dead_code)]
17 type ID = String;
18 #[derive(Serialize, Debug)]
19 pub struct Variables;
20 #[derive(Deserialize, Debug)]
21 pub struct ResponseData {
22 pub viewer: AuthenticateViewer,
23 }
24 #[derive(Deserialize, Debug)]
25 pub struct AuthenticateViewer {
26 pub email: String,
27 }
28}
29impl graphql_client::GraphQLQuery for Authenticate {
30 type Variables = authenticate::Variables;
31 type ResponseData = authenticate::ResponseData;
32 fn build_query(variables: Self::Variables) -> ::graphql_client::QueryBody<Self::Variables> {
33 graphql_client::QueryBody {
34 variables,
35 query: authenticate::QUERY,
36 operation_name: authenticate::OPERATION_NAME,
37 }
38 }
39}