// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: app.bsky.feed.getPosts // // 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 )] #[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetPosts<'a> { #[serde(borrow)] pub uris: Vec>, } impl jacquard_common::IntoStatic for GetPosts<'_> { type Output = GetPosts<'static>; fn into_static(self) -> Self::Output { GetPosts { uris: self.uris.into_static(), } } } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct GetPostsOutput<'a> { #[serde(borrow)] pub posts: Vec>, } impl jacquard_common::IntoStatic for GetPostsOutput<'_> { type Output = GetPostsOutput<'static>; fn into_static(self) -> Self::Output { GetPostsOutput { posts: self.posts.into_static(), extra_data: self.extra_data.into_static(), } } } impl jacquard_common::types::xrpc::XrpcRequest for GetPosts<'_> { const NSID: &'static str = "app.bsky.feed.getPosts"; const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; const OUTPUT_ENCODING: &'static str = "application/json"; type Output<'de> = GetPostsOutput<'de>; type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; }