1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.server.deactivateAccount
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 jacquard_derive::IntoStatic,
17 Default
18)]
19#[serde(rename_all = "camelCase")]
20pub struct DeactivateAccount<'a> {
21 /// A recommendation to server as to how long they should hold onto the deactivated account before deleting.
22 #[serde(skip_serializing_if = "std::option::Option::is_none")]
23 pub delete_after: std::option::Option<jacquard_common::types::string::Datetime>,
24}
25
26///Response type for
27///com.atproto.server.deactivateAccount
28pub struct DeactivateAccountResponse;
29impl jacquard_common::xrpc::XrpcResp for DeactivateAccountResponse {
30 const NSID: &'static str = "com.atproto.server.deactivateAccount";
31 const ENCODING: &'static str = "application/json";
32 type Output<'de> = ();
33 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
34}
35
36impl<'a> jacquard_common::xrpc::XrpcRequest for DeactivateAccount<'a> {
37 const NSID: &'static str = "com.atproto.server.deactivateAccount";
38 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
39 "application/json",
40 );
41 type Response = DeactivateAccountResponse;
42}
43
44///Endpoint type for
45///com.atproto.server.deactivateAccount
46pub struct DeactivateAccountRequest;
47impl jacquard_common::xrpc::XrpcEndpoint for DeactivateAccountRequest {
48 const PATH: &'static str = "/xrpc/com.atproto.server.deactivateAccount";
49 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
50 "application/json",
51 );
52 type Request<'de> = DeactivateAccount<'de>;
53 type Response = DeactivateAccountResponse;
54}