A better Rust ATProto crate
at main 2.3 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.blebbit.authr.folder.getFolders 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8#[derive( 9 serde::Serialize, 10 serde::Deserialize, 11 Debug, 12 Clone, 13 PartialEq, 14 Eq, 15 bon::Builder, 16 jacquard_derive::IntoStatic 17)] 18#[builder(start_fn = new)] 19#[serde(rename_all = "camelCase")] 20pub struct GetFolders<'a> { 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 #[serde(borrow)] 23 #[builder(into)] 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 pub limit: std::option::Option<i64>, 27} 28 29#[jacquard_derive::lexicon] 30#[derive( 31 serde::Serialize, 32 serde::Deserialize, 33 Debug, 34 Clone, 35 PartialEq, 36 Eq, 37 jacquard_derive::IntoStatic, 38 Default 39)] 40#[serde(rename_all = "camelCase")] 41pub struct GetFoldersOutput<'a> { 42 #[serde(skip_serializing_if = "std::option::Option::is_none")] 43 #[serde(borrow)] 44 pub folders: std::option::Option< 45 Vec<crate::app_blebbit::authr::folder::FolderView<'a>>, 46 >, 47} 48 49///Response type for 50///app.blebbit.authr.folder.getFolders 51pub struct GetFoldersResponse; 52impl jacquard_common::xrpc::XrpcResp for GetFoldersResponse { 53 const NSID: &'static str = "app.blebbit.authr.folder.getFolders"; 54 const ENCODING: &'static str = "application/json"; 55 type Output<'de> = GetFoldersOutput<'de>; 56 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 57} 58 59impl<'a> jacquard_common::xrpc::XrpcRequest for GetFolders<'a> { 60 const NSID: &'static str = "app.blebbit.authr.folder.getFolders"; 61 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 62 type Response = GetFoldersResponse; 63} 64 65///Endpoint type for 66///app.blebbit.authr.folder.getFolders 67pub struct GetFoldersRequest; 68impl jacquard_common::xrpc::XrpcEndpoint for GetFoldersRequest { 69 const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.getFolders"; 70 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 71 type Request<'de> = GetFolders<'de>; 72 type Response = GetFoldersResponse; 73}