1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.feed.getPosts
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)]
17#[builder(start_fn = new)]
18#[serde(rename_all = "camelCase")]
19pub struct GetPosts<'a> {
20 #[serde(borrow)]
21 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>,
22}
23
24impl jacquard_common::IntoStatic for GetPosts<'_> {
25 type Output = GetPosts<'static>;
26 fn into_static(self) -> Self::Output {
27 GetPosts {
28 uris: self.uris.into_static(),
29 }
30 }
31}
32
33#[jacquard_derive::lexicon]
34#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
35#[serde(rename_all = "camelCase")]
36pub struct GetPostsOutput<'a> {
37 #[serde(borrow)]
38 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>,
39}
40
41impl jacquard_common::IntoStatic for GetPostsOutput<'_> {
42 type Output = GetPostsOutput<'static>;
43 fn into_static(self) -> Self::Output {
44 GetPostsOutput {
45 posts: self.posts.into_static(),
46 extra_data: self.extra_data.into_static(),
47 }
48 }
49}
50
51impl jacquard_common::types::xrpc::XrpcRequest for GetPosts<'_> {
52 const NSID: &'static str = "app.bsky.feed.getPosts";
53 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
54 const OUTPUT_ENCODING: &'static str = "application/json";
55 type Output<'de> = GetPostsOutput<'de>;
56 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
57}