blips/graphql/generated/
delete_note.rs1#![allow(clippy::all, warnings)]
2pub struct DeleteNote;
3pub mod delete_note {
4 #![allow(dead_code)]
5 use std::result::Result;
6 pub const OPERATION_NAME: &str = "DeleteNote";
7 pub const QUERY : & str = "mutation DeleteNote($note_id: ID!) {\n deleteNote(noteId: $note_id) {\n ...Note\n }\n}\n\nfragment Note on Note {\n __typename\n body\n date\n endDate\n hidePreview\n id\n name\n updatedAt\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 type Date = crate::graphql::custom_scalars::Date;
19 type DateTime = crate::graphql::custom_scalars::DateTime;
20 #[derive(Serialize)]
21 pub struct Variables {
22 pub note_id: ID,
23 }
24 impl Variables {}
25 #[derive(Deserialize, Debug)]
26 pub struct Note {
27 pub body: Option<String>,
28 pub date: Option<Date>,
29 #[serde(rename = "endDate")]
30 pub end_date: Option<Date>,
31 #[serde(rename = "hidePreview")]
32 pub hide_preview: Boolean,
33 pub id: ID,
34 pub name: String,
35 #[serde(rename = "updatedAt")]
36 pub updated_at: DateTime,
37 }
38 #[derive(Deserialize, Debug)]
39 pub struct ResponseData {
40 #[serde(rename = "deleteNote")]
41 pub delete_note: DeleteNoteDeleteNote,
42 }
43 pub type DeleteNoteDeleteNote = Note;
44}
45impl graphql_client::GraphQLQuery for DeleteNote {
46 type Variables = delete_note::Variables;
47 type ResponseData = delete_note::ResponseData;
48 fn build_query(variables: Self::Variables) -> ::graphql_client::QueryBody<Self::Variables> {
49 graphql_client::QueryBody {
50 variables,
51 query: delete_note::QUERY,
52 operation_name: delete_note::OPERATION_NAME,
53 }
54 }
55}