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