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