A better Rust ATProto crate
at oauth 1.7 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: com.atproto.admin.updateAccountSigningKey 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 bon::Builder 17)] 18#[serde(rename_all = "camelCase")] 19#[builder(start_fn = new)] 20pub struct UpdateAccountSigningKey<'a> { 21 #[serde(borrow)] 22 pub did: jacquard_common::types::string::Did<'a>, 23 ///Did-key formatted public key 24 #[serde(borrow)] 25 pub signing_key: jacquard_common::types::string::Did<'a>, 26 #[serde(flatten)] 27 #[serde(borrow)] 28 #[builder(default)] 29 pub extra_data: ::std::collections::BTreeMap< 30 ::jacquard_common::smol_str::SmolStr, 31 ::jacquard_common::types::value::Data<'a>, 32 >, 33} 34 35impl jacquard_common::IntoStatic for UpdateAccountSigningKey<'_> { 36 type Output = UpdateAccountSigningKey<'static>; 37 fn into_static(self) -> Self::Output { 38 UpdateAccountSigningKey { 39 did: self.did.into_static(), 40 signing_key: self.signing_key.into_static(), 41 extra_data: self.extra_data.into_static(), 42 } 43 } 44} 45 46impl jacquard_common::types::xrpc::XrpcRequest for UpdateAccountSigningKey<'_> { 47 const NSID: &'static str = "com.atproto.admin.updateAccountSigningKey"; 48 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 49 "application/json", 50 ); 51 const OUTPUT_ENCODING: &'static str = "application/json"; 52 type Output<'de> = (); 53 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; 54}