A better Rust ATProto crate
at main 2.1 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: com.atproto.temp.revokeAccountCredentials 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 jacquard_derive::IntoStatic 18)] 19#[serde(rename_all = "camelCase")] 20#[builder(start_fn = new)] 21pub struct RevokeAccountCredentials<'a> { 22 #[serde(borrow)] 23 pub account: jacquard_common::types::ident::AtIdentifier<'a>, 24 #[serde(flatten)] 25 #[serde(borrow)] 26 #[builder(default)] 27 pub extra_data: ::std::collections::BTreeMap< 28 ::jacquard_common::smol_str::SmolStr, 29 ::jacquard_common::types::value::Data<'a>, 30 >, 31} 32 33///Response type for 34///com.atproto.temp.revokeAccountCredentials 35pub struct RevokeAccountCredentialsResponse; 36impl jacquard_common::xrpc::XrpcResp for RevokeAccountCredentialsResponse { 37 const NSID: &'static str = "com.atproto.temp.revokeAccountCredentials"; 38 const ENCODING: &'static str = "application/json"; 39 type Output<'de> = (); 40 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 41} 42 43impl<'a> jacquard_common::xrpc::XrpcRequest for RevokeAccountCredentials<'a> { 44 const NSID: &'static str = "com.atproto.temp.revokeAccountCredentials"; 45 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 46 "application/json", 47 ); 48 type Response = RevokeAccountCredentialsResponse; 49} 50 51///Endpoint type for 52///com.atproto.temp.revokeAccountCredentials 53pub struct RevokeAccountCredentialsRequest; 54impl jacquard_common::xrpc::XrpcEndpoint for RevokeAccountCredentialsRequest { 55 const PATH: &'static str = "/xrpc/com.atproto.temp.revokeAccountCredentials"; 56 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 57 "application/json", 58 ); 59 type Request<'de> = RevokeAccountCredentials<'de>; 60 type Response = RevokeAccountCredentialsResponse; 61}