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)]
17#[builder(start_fn = new)]
18#[serde(rename_all = "camelCase")]
19pub struct GetCheckout<'a> {
20 #[serde(borrow)]
21 pub did: jacquard_common::types::string::Did<'a>,
22}
23
24impl jacquard_common::IntoStatic for GetCheckout<'_> {
25 type Output = GetCheckout<'static>;
26 fn into_static(self) -> Self::Output {
27 GetCheckout {
28 did: self.did.into_static(),
29 }
30 }
31}
32
33#[jacquard_derive::lexicon]
34#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
35#[serde(rename_all = "camelCase")]
36pub struct GetCheckoutOutput<'a> {}
37impl jacquard_common::IntoStatic for GetCheckoutOutput<'_> {
38 type Output = GetCheckoutOutput<'static>;
39 fn into_static(self) -> Self::Output {
40 GetCheckoutOutput {
41 extra_data: self.extra_data.into_static(),
42 }
43 }
44}
45
46impl jacquard_common::types::xrpc::XrpcRequest for GetCheckout<'_> {
47 const NSID: &'static str = "com.atproto.sync.getCheckout";
48 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
49 const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car";
50 type Output<'de> = GetCheckoutOutput<'de>;
51 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
52}