1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.temp.requestPhoneVerification
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 RequestPhoneVerification<'a> {
21 #[serde(borrow)]
22 pub phone_number: jacquard_common::CowStr<'a>,
23}
24
25///Response type for
26///com.atproto.temp.requestPhoneVerification
27pub struct RequestPhoneVerificationResponse;
28impl jacquard_common::xrpc::XrpcResp for RequestPhoneVerificationResponse {
29 const NSID: &'static str = "com.atproto.temp.requestPhoneVerification";
30 const ENCODING: &'static str = "application/json";
31 type Output<'de> = ();
32 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
33}
34
35impl<'a> jacquard_common::xrpc::XrpcRequest for RequestPhoneVerification<'a> {
36 const NSID: &'static str = "com.atproto.temp.requestPhoneVerification";
37 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
38 "application/json",
39 );
40 type Response = RequestPhoneVerificationResponse;
41}
42
43///Endpoint type for
44///com.atproto.temp.requestPhoneVerification
45pub struct RequestPhoneVerificationRequest;
46impl jacquard_common::xrpc::XrpcEndpoint for RequestPhoneVerificationRequest {
47 const PATH: &'static str = "/xrpc/com.atproto.temp.requestPhoneVerification";
48 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
49 "application/json",
50 );
51 type Request<'de> = RequestPhoneVerification<'de>;
52 type Response = RequestPhoneVerificationResponse;
53}