// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: com.atproto.admin.getAccountInfo // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder, jacquard_derive::IntoStatic )] #[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetAccountInfo<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct GetAccountInfoOutput<'a> { #[serde(flatten)] #[serde(borrow)] pub value: crate::com_atproto::admin::AccountView<'a>, } ///Response type for ///com.atproto.admin.getAccountInfo pub struct GetAccountInfoResponse; impl jacquard_common::xrpc::XrpcResp for GetAccountInfoResponse { const NSID: &'static str = "com.atproto.admin.getAccountInfo"; const ENCODING: &'static str = "application/json"; type Output<'de> = GetAccountInfoOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for GetAccountInfo<'a> { const NSID: &'static str = "com.atproto.admin.getAccountInfo"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAccountInfoResponse; } ///Endpoint type for ///com.atproto.admin.getAccountInfo pub struct GetAccountInfoRequest; impl jacquard_common::xrpc::XrpcEndpoint for GetAccountInfoRequest { const PATH: &'static str = "/xrpc/com.atproto.admin.getAccountInfo"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = GetAccountInfo<'de>; type Response = GetAccountInfoResponse; }