// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: com.whtwnd.blog.getAuthorPosts // // 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 GetAuthorPosts<'a> { #[serde(borrow)] pub author: jacquard_common::types::string::Did<'a>, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct GetAuthorPostsOutput<'a> { #[serde(borrow)] pub post: Vec>, } ///Response type for ///com.whtwnd.blog.getAuthorPosts pub struct GetAuthorPostsResponse; impl jacquard_common::xrpc::XrpcResp for GetAuthorPostsResponse { const NSID: &'static str = "com.whtwnd.blog.getAuthorPosts"; const ENCODING: &'static str = "application/json"; type Output<'de> = GetAuthorPostsOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for GetAuthorPosts<'a> { const NSID: &'static str = "com.whtwnd.blog.getAuthorPosts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAuthorPostsResponse; } ///Endpoint type for ///com.whtwnd.blog.getAuthorPosts pub struct GetAuthorPostsRequest; impl jacquard_common::xrpc::XrpcEndpoint for GetAuthorPostsRequest { const PATH: &'static str = "/xrpc/com.whtwnd.blog.getAuthorPosts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = GetAuthorPosts<'de>; type Response = GetAuthorPostsResponse; }