1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.labeler.getServices
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 GetServices<'a> {
21 ///(default: false)
22 #[serde(skip_serializing_if = "std::option::Option::is_none")]
23 pub detailed: std::option::Option<bool>,
24 #[serde(borrow)]
25 pub dids: Vec<jacquard_common::types::string::Did<'a>>,
26}
27
28#[jacquard_derive::lexicon]
29#[derive(
30 serde::Serialize,
31 serde::Deserialize,
32 Debug,
33 Clone,
34 PartialEq,
35 Eq,
36 jacquard_derive::IntoStatic
37)]
38#[serde(rename_all = "camelCase")]
39pub struct GetServicesOutput<'a> {
40 #[serde(borrow)]
41 pub views: Vec<GetServicesOutputViewsItem<'a>>,
42}
43
44#[jacquard_derive::open_union]
45#[derive(
46 serde::Serialize,
47 serde::Deserialize,
48 Debug,
49 Clone,
50 PartialEq,
51 Eq,
52 jacquard_derive::IntoStatic
53)]
54#[serde(tag = "$type")]
55#[serde(bound(deserialize = "'de: 'a"))]
56pub enum GetServicesOutputViewsItem<'a> {
57 #[serde(rename = "app.bsky.labeler.defs#labelerView")]
58 LabelerView(Box<crate::app_bsky::labeler::LabelerView<'a>>),
59 #[serde(rename = "app.bsky.labeler.defs#labelerViewDetailed")]
60 LabelerViewDetailed(Box<crate::app_bsky::labeler::LabelerViewDetailed<'a>>),
61}
62
63///Response type for
64///app.bsky.labeler.getServices
65pub struct GetServicesResponse;
66impl jacquard_common::xrpc::XrpcResp for GetServicesResponse {
67 const NSID: &'static str = "app.bsky.labeler.getServices";
68 const ENCODING: &'static str = "application/json";
69 type Output<'de> = GetServicesOutput<'de>;
70 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
71}
72
73impl<'a> jacquard_common::xrpc::XrpcRequest for GetServices<'a> {
74 const NSID: &'static str = "app.bsky.labeler.getServices";
75 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
76 type Response = GetServicesResponse;
77}
78
79///Endpoint type for
80///app.bsky.labeler.getServices
81pub struct GetServicesRequest;
82impl jacquard_common::xrpc::XrpcEndpoint for GetServicesRequest {
83 const PATH: &'static str = "/xrpc/app.bsky.labeler.getServices";
84 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
85 type Request<'de> = GetServices<'de>;
86 type Response = GetServicesResponse;
87}