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<jacquard_common::types::value::Data<'a>>,
42}
43
44///Response type for
45///app.bsky.labeler.getServices
46pub struct GetServicesResponse;
47impl jacquard_common::xrpc::XrpcResp for GetServicesResponse {
48 const NSID: &'static str = "app.bsky.labeler.getServices";
49 const ENCODING: &'static str = "application/json";
50 type Output<'de> = GetServicesOutput<'de>;
51 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
52}
53
54impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetServices<'de> {
55 const NSID: &'static str = "app.bsky.labeler.getServices";
56 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
57 type Response = GetServicesResponse;
58}
59
60///Endpoint type for
61///app.bsky.labeler.getServices
62pub struct GetServicesRequest;
63impl jacquard_common::xrpc::XrpcEndpoint for GetServicesRequest {
64 const PATH: &'static str = "/xrpc/app.bsky.labeler.getServices";
65 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
66 type Request<'de> = GetServices<'de>;
67 type Response = GetServicesResponse;
68}