1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.admin.updateAccountPassword
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 UpdateAccountPassword<'a> {
21 #[serde(borrow)]
22 pub did: jacquard_common::types::string::Did<'a>,
23 #[serde(borrow)]
24 #[builder(into)]
25 pub password: jacquard_common::CowStr<'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 UpdateAccountPassword<'_> {
36 type Output = UpdateAccountPassword<'static>;
37 fn into_static(self) -> Self::Output {
38 UpdateAccountPassword {
39 did: self.did.into_static(),
40 password: self.password.into_static(),
41 extra_data: self.extra_data.into_static(),
42 }
43 }
44}
45
46impl jacquard_common::types::xrpc::XrpcRequest for UpdateAccountPassword<'_> {
47 const NSID: &'static str = "com.atproto.admin.updateAccountPassword";
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}