// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: com.atproto.identity.updateHandle // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder )] #[serde(rename_all = "camelCase")] #[builder(start_fn = new)] pub struct UpdateHandle<'a> { ///The new handle. #[serde(borrow)] pub handle: jacquard_common::types::string::Handle<'a>, #[serde(flatten)] #[serde(borrow)] #[builder(default)] pub extra_data: ::std::collections::BTreeMap< ::jacquard_common::smol_str::SmolStr, ::jacquard_common::types::value::Data<'a>, >, } impl jacquard_common::IntoStatic for UpdateHandle<'_> { type Output = UpdateHandle<'static>; fn into_static(self) -> Self::Output { UpdateHandle { handle: self.handle.into_static(), extra_data: self.extra_data.into_static(), } } } impl jacquard_common::types::xrpc::XrpcRequest for UpdateHandle<'_> { const NSID: &'static str = "com.atproto.identity.updateHandle"; const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( "application/json", ); const OUTPUT_ENCODING: &'static str = "application/json"; type Output<'de> = (); type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; }