jacquard_api/com_bad_example/identity/
resolve_mini_doc.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.bad-example.identity.resolveMiniDoc
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 ResolveMiniDoc<'a> {
21    #[serde(borrow)]
22    pub identifier: jacquard_common::types::ident::AtIdentifier<'a>,
23}
24
25#[jacquard_derive::lexicon]
26#[derive(
27    serde::Serialize,
28    serde::Deserialize,
29    Debug,
30    Clone,
31    PartialEq,
32    Eq,
33    jacquard_derive::IntoStatic
34)]
35#[serde(rename_all = "camelCase")]
36pub struct ResolveMiniDocOutput<'a> {
37    ///DID, bi-directionally verified if a handle was provided in the query.
38    #[serde(borrow)]
39    pub did: jacquard_common::types::string::Did<'a>,
40    /**The validated handle of the account or `handle.invalid` if the handle
41did not bi-directionally match the DID document.*/
42    #[serde(borrow)]
43    pub handle: jacquard_common::types::string::Handle<'a>,
44    ///The identity's PDS URL
45    #[serde(borrow)]
46    pub pds: jacquard_common::types::string::Uri<'a>,
47    /**The atproto signing key publicKeyMultibase
48
49Legacy key encoding not supported. the key is returned directly; `id`,
50`type`, and `controller` are omitted.*/
51    #[serde(borrow)]
52    pub signing_key: jacquard_common::CowStr<'a>,
53}
54
55///Response type for
56///com.bad-example.identity.resolveMiniDoc
57pub struct ResolveMiniDocResponse;
58impl jacquard_common::xrpc::XrpcResp for ResolveMiniDocResponse {
59    const NSID: &'static str = "com.bad-example.identity.resolveMiniDoc";
60    const ENCODING: &'static str = "application/json";
61    type Output<'de> = ResolveMiniDocOutput<'de>;
62    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
63}
64
65impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ResolveMiniDoc<'de> {
66    const NSID: &'static str = "com.bad-example.identity.resolveMiniDoc";
67    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
68    type Response = ResolveMiniDocResponse;
69}
70
71///Endpoint type for
72///com.bad-example.identity.resolveMiniDoc
73pub struct ResolveMiniDocRequest;
74impl jacquard_common::xrpc::XrpcEndpoint for ResolveMiniDocRequest {
75    const PATH: &'static str = "/xrpc/com.bad-example.identity.resolveMiniDoc";
76    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
77    type Request<'de> = ResolveMiniDoc<'de>;
78    type Response = ResolveMiniDocResponse;
79}