1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.identity.defs
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8pub mod get_recommended_did_credentials;
9pub mod refresh_identity;
10pub mod request_plc_operation_signature;
11pub mod resolve_did;
12pub mod resolve_handle;
13pub mod resolve_identity;
14pub mod sign_plc_operation;
15pub mod submit_plc_operation;
16pub mod update_handle;
17
18#[jacquard_derive::lexicon]
19#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
20#[serde(rename_all = "camelCase")]
21pub struct IdentityInfo<'a> {
22 #[serde(borrow)]
23 pub did: jacquard_common::types::string::Did<'a>,
24 ///The complete DID document for the identity.
25 #[serde(borrow)]
26 pub did_doc: jacquard_common::types::value::Data<'a>,
27 ///The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.
28 #[serde(borrow)]
29 pub handle: jacquard_common::types::string::Handle<'a>,
30}
31
32impl jacquard_common::IntoStatic for IdentityInfo<'_> {
33 type Output = IdentityInfo<'static>;
34 fn into_static(self) -> Self::Output {
35 IdentityInfo {
36 did: self.did.into_static(),
37 did_doc: self.did_doc.into_static(),
38 handle: self.handle.into_static(),
39 extra_data: self.extra_data.into_static(),
40 }
41 }
42}