// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: com.atproto.admin.enableAccountInvites // // 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, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] #[builder(start_fn = new)] pub struct EnableAccountInvites<'a> { #[serde(borrow)] pub account: jacquard_common::types::string::Did<'a>, /// Optional reason for enabled invites. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub note: Option>, #[serde(flatten)] #[serde(borrow)] #[builder(default)] pub extra_data: ::std::collections::BTreeMap< ::jacquard_common::smol_str::SmolStr, ::jacquard_common::types::value::Data<'a>, >, } ///Response type for ///com.atproto.admin.enableAccountInvites pub struct EnableAccountInvitesResponse; impl jacquard_common::xrpc::XrpcResp for EnableAccountInvitesResponse { const NSID: &'static str = "com.atproto.admin.enableAccountInvites"; const ENCODING: &'static str = "application/json"; type Output<'de> = (); type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for EnableAccountInvites<'a> { const NSID: &'static str = "com.atproto.admin.enableAccountInvites"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( "application/json", ); type Response = EnableAccountInvitesResponse; } ///Endpoint type for ///com.atproto.admin.enableAccountInvites pub struct EnableAccountInvitesRequest; impl jacquard_common::xrpc::XrpcEndpoint for EnableAccountInvitesRequest { const PATH: &'static str = "/xrpc/com.atproto.admin.enableAccountInvites"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( "application/json", ); type Request<'de> = EnableAccountInvites<'de>; type Response = EnableAccountInvitesResponse; }