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