1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.sync.getCheckout
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[derive(
9 serde::Serialize,
10 serde::Deserialize,
11 Debug,
12 Clone,
13 PartialEq,
14 Eq,
15 bon::Builder,
16 jacquard_derive::IntoStatic
17)]
18#[builder(start_fn = new)]
19#[serde(rename_all = "camelCase")]
20pub struct GetCheckout<'a> {
21 #[serde(borrow)]
22 pub did: jacquard_common::types::string::Did<'a>,
23}
24
25#[jacquard_derive::lexicon]
26#[derive(
27 serde::Serialize,
28 serde::Deserialize,
29 Debug,
30 Clone,
31 PartialEq,
32 Eq,
33 jacquard_derive::IntoStatic
34)]
35#[serde(rename_all = "camelCase")]
36pub struct GetCheckoutOutput<'a> {}
37///Response type for
38///com.atproto.sync.getCheckout
39pub struct GetCheckoutResponse;
40impl jacquard_common::xrpc::XrpcResp for GetCheckoutResponse {
41 const NSID: &'static str = "com.atproto.sync.getCheckout";
42 const ENCODING: &'static str = "application/vnd.ipld.car";
43 type Output<'de> = GetCheckoutOutput<'de>;
44 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
45}
46
47impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetCheckout<'de> {
48 const NSID: &'static str = "com.atproto.sync.getCheckout";
49 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
50 type Response = GetCheckoutResponse;
51}
52
53///Endpoint type for
54///com.atproto.sync.getCheckout
55pub struct GetCheckoutRequest;
56impl jacquard_common::xrpc::XrpcEndpoint for GetCheckoutRequest {
57 const PATH: &'static str = "/xrpc/com.atproto.sync.getCheckout";
58 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
59 type Request<'de> = GetCheckout<'de>;
60 type Response = GetCheckoutResponse;
61}