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::deps::smol_str::SmolStr;
14use jacquard_common::types::value::Data;
15use jacquard_common::{BosStr, DefaultStr, FromStaticStr};
16use jacquard_derive::IntoStatic;
17use serde::{Deserialize, Serialize};
18
19#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
20#[serde(
21    rename_all = "camelCase",
22    bound(deserialize = "S: Deserialize<'de> + BosStr")
23)]
24pub struct CheckSignupQueueOutput<S: BosStr = DefaultStr> {
25    pub activated: bool,
26    #[serde(skip_serializing_if = "Option::is_none")]
27    pub estimated_time_ms: Option<i64>,
28    #[serde(skip_serializing_if = "Option::is_none")]
29    pub place_in_queue: Option<i64>,
30    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
31    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
32}
33
34/** Request marker for the `com.atproto.temp.checkSignupQueue` query.
35
36This endpoint has no request parameters or input body; send this marker with `jacquard::Client`.*/
37
38#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Copy)]
39pub struct CheckSignupQueue;
40/** Response marker for the `com.atproto.temp.checkSignupQueue` query.
41
42Implements `jacquard_common::xrpc::XrpcResp`; successful bodies decode as `Self::Output<S>`, which is `CheckSignupQueueOutput<S>` for this endpoint.*/
43pub struct CheckSignupQueueResponse;
44impl jacquard_common::xrpc::XrpcResp for CheckSignupQueueResponse {
45    const NSID: &'static str = "com.atproto.temp.checkSignupQueue";
46    const ENCODING: &'static str = "application/json";
47    type Output<S: BosStr> = CheckSignupQueueOutput<S>;
48    type Err = jacquard_common::xrpc::GenericError;
49}
50
51impl jacquard_common::xrpc::XrpcRequest for CheckSignupQueue {
52    const NSID: &'static str = "com.atproto.temp.checkSignupQueue";
53    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
54    type Response = CheckSignupQueueResponse;
55}
56
57/** Endpoint marker for the `com.atproto.temp.checkSignupQueue` query.
58
59Path: `/xrpc/com.atproto.temp.checkSignupQueue`. The request payload type is `CheckSignupQueue`; use this marker with lower-level `XrpcEndpoint` APIs when you need endpoint metadata.*/
60pub struct CheckSignupQueueRequest;
61impl jacquard_common::xrpc::XrpcEndpoint for CheckSignupQueueRequest {
62    const PATH: &'static str = "/xrpc/com.atproto.temp.checkSignupQueue";
63    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
64    type Request<S: BosStr> = CheckSignupQueue;
65    type Response = CheckSignupQueueResponse;
66}