1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.server.checkAccountStatus
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(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
10#[serde(rename_all = "camelCase")]
11pub struct CheckAccountStatusOutput<'a> {
12 pub activated: bool,
13 pub expected_blobs: i64,
14 pub imported_blobs: i64,
15 pub indexed_records: i64,
16 pub private_state_values: i64,
17 pub repo_blocks: i64,
18 #[serde(borrow)]
19 pub repo_commit: jacquard_common::types::string::Cid<'a>,
20 #[serde(borrow)]
21 pub repo_rev: jacquard_common::CowStr<'a>,
22 pub valid_did: bool,
23}
24
25impl jacquard_common::IntoStatic for CheckAccountStatusOutput<'_> {
26 type Output = CheckAccountStatusOutput<'static>;
27 fn into_static(self) -> Self::Output {
28 CheckAccountStatusOutput {
29 activated: self.activated.into_static(),
30 expected_blobs: self.expected_blobs.into_static(),
31 imported_blobs: self.imported_blobs.into_static(),
32 indexed_records: self.indexed_records.into_static(),
33 private_state_values: self.private_state_values.into_static(),
34 repo_blocks: self.repo_blocks.into_static(),
35 repo_commit: self.repo_commit.into_static(),
36 repo_rev: self.repo_rev.into_static(),
37 valid_did: self.valid_did.into_static(),
38 extra_data: self.extra_data.into_static(),
39 }
40 }
41}
42
43/// XRPC request marker type
44#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)]
45pub struct CheckAccountStatus;
46impl jacquard_common::types::xrpc::XrpcRequest for CheckAccountStatus {
47 const NSID: &'static str = "com.atproto.server.checkAccountStatus";
48 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
49 const OUTPUT_ENCODING: &'static str = "application/json";
50 type Output<'de> = CheckAccountStatusOutput<'de>;
51 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
52}