A better Rust ATProto crate
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: com.atproto.identity.getRecommendedDidCredentials 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8#[jacquard_derive::lexicon] 9#[derive( 10 serde::Serialize, 11 serde::Deserialize, 12 Debug, 13 Clone, 14 PartialEq, 15 Eq, 16 jacquard_derive::IntoStatic 17)] 18#[serde(rename_all = "camelCase")] 19pub struct GetRecommendedDidCredentialsOutput<'a> { 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 21 #[serde(borrow)] 22 pub also_known_as: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 23 ///Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs. 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub rotation_keys: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub services: std::option::Option<jacquard_common::types::value::Data<'a>>, 30 #[serde(skip_serializing_if = "std::option::Option::is_none")] 31 #[serde(borrow)] 32 pub verification_methods: std::option::Option< 33 jacquard_common::types::value::Data<'a>, 34 >, 35} 36 37/// XRPC request marker type 38#[derive( 39 Debug, 40 Clone, 41 Copy, 42 PartialEq, 43 Eq, 44 serde::Serialize, 45 serde::Deserialize, 46 jacquard_derive::IntoStatic 47)] 48pub struct GetRecommendedDidCredentials; 49///Response type for 50///com.atproto.identity.getRecommendedDidCredentials 51pub struct GetRecommendedDidCredentialsResponse; 52impl jacquard_common::xrpc::XrpcResp for GetRecommendedDidCredentialsResponse { 53 const NSID: &'static str = "com.atproto.identity.getRecommendedDidCredentials"; 54 const ENCODING: &'static str = "application/json"; 55 type Output<'de> = GetRecommendedDidCredentialsOutput<'de>; 56 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 57} 58 59impl jacquard_common::xrpc::XrpcRequest for GetRecommendedDidCredentials { 60 const NSID: &'static str = "com.atproto.identity.getRecommendedDidCredentials"; 61 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 62 type Response = GetRecommendedDidCredentialsResponse; 63} 64 65///Endpoint type for 66///com.atproto.identity.getRecommendedDidCredentials 67pub struct GetRecommendedDidCredentialsRequest; 68impl jacquard_common::xrpc::XrpcEndpoint for GetRecommendedDidCredentialsRequest { 69 const PATH: &'static str = "/xrpc/com.atproto.identity.getRecommendedDidCredentials"; 70 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 71 type Request<'de> = GetRecommendedDidCredentials; 72 type Response = GetRecommendedDidCredentialsResponse; 73}