1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.unspecced.getTrendsSkeleton
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 GetTrendsSkeleton<'a> {
20 ///(default: 10, min: 1, max: 25)
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 pub limit: std::option::Option<i64>,
23 #[serde(skip_serializing_if = "std::option::Option::is_none")]
24 #[serde(borrow)]
25 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>,
26}
27
28impl jacquard_common::IntoStatic for GetTrendsSkeleton<'_> {
29 type Output = GetTrendsSkeleton<'static>;
30 fn into_static(self) -> Self::Output {
31 GetTrendsSkeleton {
32 limit: self.limit.into_static(),
33 viewer: self.viewer.into_static(),
34 }
35 }
36}
37
38#[jacquard_derive::lexicon]
39#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
40#[serde(rename_all = "camelCase")]
41pub struct GetTrendsSkeletonOutput<'a> {
42 #[serde(borrow)]
43 pub trends: Vec<crate::app_bsky::unspecced::SkeletonTrend<'a>>,
44}
45
46impl jacquard_common::IntoStatic for GetTrendsSkeletonOutput<'_> {
47 type Output = GetTrendsSkeletonOutput<'static>;
48 fn into_static(self) -> Self::Output {
49 GetTrendsSkeletonOutput {
50 trends: self.trends.into_static(),
51 extra_data: self.extra_data.into_static(),
52 }
53 }
54}
55
56impl jacquard_common::types::xrpc::XrpcRequest for GetTrendsSkeleton<'_> {
57 const NSID: &'static str = "app.bsky.unspecced.getTrendsSkeleton";
58 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
59 const OUTPUT_ENCODING: &'static str = "application/json";
60 type Output<'de> = GetTrendsSkeletonOutput<'de>;
61 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
62}