Skip to main content

jacquard_api/com_atproto/temp/
check_signup_queue.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.temp.checkSignupQueue
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[allow(unused_imports)]
9use alloc::collections::BTreeMap;
10
11#[allow(unused_imports)]
12use core::marker::PhantomData;
13use jacquard_common::{BosStr, DefaultStr, FromStaticStr};
14use jacquard_common::deps::smol_str::SmolStr;
15use jacquard_common::types::value::Data;
16use jacquard_derive::IntoStatic;
17use serde::{Serialize, Deserialize};
18
19#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
20#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
21pub struct CheckSignupQueueOutput<S: BosStr = DefaultStr> {
22    pub activated: bool,
23    #[serde(skip_serializing_if = "Option::is_none")]
24    pub estimated_time_ms: Option<i64>,
25    #[serde(skip_serializing_if = "Option::is_none")]
26    pub place_in_queue: Option<i64>,
27    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
28    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
29}
30
31/** Request marker for the `com.atproto.temp.checkSignupQueue` query.
32
33This endpoint has no request parameters or input body; send this marker with `jacquard::Client`.*/
34
35#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Copy)]
36pub struct CheckSignupQueue;
37/** Response marker for the `com.atproto.temp.checkSignupQueue` query.
38
39Implements `jacquard_common::xrpc::XrpcResp`; successful bodies decode as `Self::Output<S>`, which is `CheckSignupQueueOutput<S>` for this endpoint.*/
40pub struct CheckSignupQueueResponse;
41impl jacquard_common::xrpc::XrpcResp for CheckSignupQueueResponse {
42    const NSID: &'static str = "com.atproto.temp.checkSignupQueue";
43    const ENCODING: &'static str = "application/json";
44    type Output<S: BosStr> = CheckSignupQueueOutput<S>;
45    type Err = jacquard_common::xrpc::GenericError;
46}
47
48impl jacquard_common::xrpc::XrpcRequest for CheckSignupQueue {
49    const NSID: &'static str = "com.atproto.temp.checkSignupQueue";
50    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
51    type Response = CheckSignupQueueResponse;
52}
53
54/** Endpoint marker for the `com.atproto.temp.checkSignupQueue` query.
55
56Path: `/xrpc/com.atproto.temp.checkSignupQueue`. The request payload type is `CheckSignupQueue`; use this marker with lower-level `XrpcEndpoint` APIs when you need endpoint metadata.*/
57pub struct CheckSignupQueueRequest;
58impl jacquard_common::xrpc::XrpcEndpoint for CheckSignupQueueRequest {
59    const PATH: &'static str = "/xrpc/com.atproto.temp.checkSignupQueue";
60    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
61    type Request<S: BosStr> = CheckSignupQueue;
62    type Response = CheckSignupQueueResponse;
63}