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 jacquard_derive::IntoStatic
17)]
18#[builder(start_fn = new)]
19#[serde(rename_all = "camelCase")]
20pub struct SearchAccounts<'a> {
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 #[serde(borrow)]
23 #[builder(into)]
24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
25 ///(default: 50, min: 1, max: 100)
26 #[serde(skip_serializing_if = "std::option::Option::is_none")]
27 pub limit: std::option::Option<i64>,
28 #[serde(borrow)]
29 pub values: Vec<jacquard_common::CowStr<'a>>,
30}
31
32#[jacquard_derive::lexicon]
33#[derive(
34 serde::Serialize,
35 serde::Deserialize,
36 Debug,
37 Clone,
38 PartialEq,
39 Eq,
40 jacquard_derive::IntoStatic
41)]
42#[serde(rename_all = "camelCase")]
43pub struct SearchAccountsOutput<'a> {
44 #[serde(borrow)]
45 pub accounts: Vec<crate::com_atproto::admin::AccountView<'a>>,
46 #[serde(skip_serializing_if = "std::option::Option::is_none")]
47 #[serde(borrow)]
48 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
49}
50
51///Response type for
52///tools.ozone.signature.searchAccounts
53pub struct SearchAccountsResponse;
54impl jacquard_common::xrpc::XrpcResp for SearchAccountsResponse {
55 const NSID: &'static str = "tools.ozone.signature.searchAccounts";
56 const ENCODING: &'static str = "application/json";
57 type Output<'de> = SearchAccountsOutput<'de>;
58 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
59}
60
61impl<'a> jacquard_common::xrpc::XrpcRequest for SearchAccounts<'a> {
62 const NSID: &'static str = "tools.ozone.signature.searchAccounts";
63 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
64 type Response = SearchAccountsResponse;
65}
66
67///Endpoint type for
68///tools.ozone.signature.searchAccounts
69pub struct SearchAccountsRequest;
70impl jacquard_common::xrpc::XrpcEndpoint for SearchAccountsRequest {
71 const PATH: &'static str = "/xrpc/tools.ozone.signature.searchAccounts";
72 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
73 type Request<'de> = SearchAccounts<'de>;
74 type Response = SearchAccountsResponse;
75}