// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: app.blebbit.authr.folder.getFolders // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder, jacquard_derive::IntoStatic )] #[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetFolders<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic, Default )] #[serde(rename_all = "camelCase")] pub struct GetFoldersOutput<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub folders: std::option::Option< Vec>, >, } ///Response type for ///app.blebbit.authr.folder.getFolders pub struct GetFoldersResponse; impl jacquard_common::xrpc::XrpcResp for GetFoldersResponse { const NSID: &'static str = "app.blebbit.authr.folder.getFolders"; const ENCODING: &'static str = "application/json"; type Output<'de> = GetFoldersOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for GetFolders<'a> { const NSID: &'static str = "app.blebbit.authr.folder.getFolders"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetFoldersResponse; } ///Endpoint type for ///app.blebbit.authr.folder.getFolders pub struct GetFoldersRequest; impl jacquard_common::xrpc::XrpcEndpoint for GetFoldersRequest { const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.getFolders"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = GetFolders<'de>; type Response = GetFoldersResponse; }