// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: app.blebbit.authr.page.getPages // // 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 GetPages<'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 GetPagesOutput<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub pages: std::option::Option>>, } ///Response type for ///app.blebbit.authr.page.getPages pub struct GetPagesResponse; impl jacquard_common::xrpc::XrpcResp for GetPagesResponse { const NSID: &'static str = "app.blebbit.authr.page.getPages"; const ENCODING: &'static str = "application/json"; type Output<'de> = GetPagesOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for GetPages<'a> { const NSID: &'static str = "app.blebbit.authr.page.getPages"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetPagesResponse; } ///Endpoint type for ///app.blebbit.authr.page.getPages pub struct GetPagesRequest; impl jacquard_common::xrpc::XrpcEndpoint for GetPagesRequest { const PATH: &'static str = "/xrpc/app.blebbit.authr.page.getPages"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = GetPages<'de>; type Response = GetPagesResponse; }