// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: com.atproto.admin.disableInviteCodes // // 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 DisableInviteCodes<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub accounts: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub codes: std::option::Option>>, #[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 DisableInviteCodes<'_> { type Output = DisableInviteCodes<'static>; fn into_static(self) -> Self::Output { DisableInviteCodes { accounts: self.accounts.into_static(), codes: self.codes.into_static(), extra_data: self.extra_data.into_static(), } } } impl jacquard_common::types::xrpc::XrpcRequest for DisableInviteCodes<'_> { const NSID: &'static str = "com.atproto.admin.disableInviteCodes"; 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>; }