A better Rust ATProto crate
at oauth 1.8 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: com.atproto.admin.disableInviteCodes 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 DisableInviteCodes<'a> { 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 #[serde(borrow)] 23 pub accounts: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub codes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 27 #[serde(flatten)] 28 #[serde(borrow)] 29 #[builder(default)] 30 pub extra_data: ::std::collections::BTreeMap< 31 ::jacquard_common::smol_str::SmolStr, 32 ::jacquard_common::types::value::Data<'a>, 33 >, 34} 35 36impl jacquard_common::IntoStatic for DisableInviteCodes<'_> { 37 type Output = DisableInviteCodes<'static>; 38 fn into_static(self) -> Self::Output { 39 DisableInviteCodes { 40 accounts: self.accounts.into_static(), 41 codes: self.codes.into_static(), 42 extra_data: self.extra_data.into_static(), 43 } 44 } 45} 46 47impl jacquard_common::types::xrpc::XrpcRequest for DisableInviteCodes<'_> { 48 const NSID: &'static str = "com.atproto.admin.disableInviteCodes"; 49 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 50 "application/json", 51 ); 52 const OUTPUT_ENCODING: &'static str = "application/json"; 53 type Output<'de> = (); 54 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; 55}