A better Rust ATProto crate
at lifetimes 2.2 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.blebbit.authr.page.getPages 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 GetPages<'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)] 39#[serde(rename_all = "camelCase")] 40pub struct GetPagesOutput<'a> { 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 42 #[serde(borrow)] 43 pub pages: std::option::Option<Vec<crate::app_blebbit::authr::page::PageView<'a>>>, 44} 45 46///Response type for 47///app.blebbit.authr.page.getPages 48pub struct GetPagesResponse; 49impl jacquard_common::xrpc::XrpcResp for GetPagesResponse { 50 const NSID: &'static str = "app.blebbit.authr.page.getPages"; 51 const ENCODING: &'static str = "application/json"; 52 type Output<'de> = GetPagesOutput<'de>; 53 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 54} 55 56impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPages<'de> { 57 const NSID: &'static str = "app.blebbit.authr.page.getPages"; 58 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 59 type Response = GetPagesResponse; 60} 61 62///Endpoint type for 63///app.blebbit.authr.page.getPages 64pub struct GetPagesRequest; 65impl jacquard_common::xrpc::XrpcEndpoint for GetPagesRequest { 66 const PATH: &'static str = "/xrpc/app.blebbit.authr.page.getPages"; 67 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 68 type Request<'de> = GetPages<'de>; 69 type Response = GetPagesResponse; 70}