use serde::Deserialize; #[derive(Deserialize, Debug)] pub struct NodeList { pub data: Vec, } #[derive(Deserialize, Debug)] pub struct Post { pub id: String, } #[derive(Deserialize, Debug)] pub struct SinglePost { pub post: Post, } #[derive(Deserialize, Debug)] pub struct AllPosts { pub posts: NodeList, } pub mod inputs { use serde::Serialize; #[derive(Serialize, Debug)] pub struct SinglePostVariables { pub id: u32, } }