1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.temp.addReservedHandle
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 bon::Builder
17)]
18#[serde(rename_all = "camelCase")]
19#[builder(start_fn = new)]
20pub struct AddReservedHandle<'a> {
21 #[serde(borrow)]
22 #[builder(into)]
23 pub handle: jacquard_common::CowStr<'a>,
24 #[serde(flatten)]
25 #[serde(borrow)]
26 #[builder(default)]
27 pub extra_data: ::std::collections::BTreeMap<
28 ::jacquard_common::smol_str::SmolStr,
29 ::jacquard_common::types::value::Data<'a>,
30 >,
31}
32
33impl jacquard_common::IntoStatic for AddReservedHandle<'_> {
34 type Output = AddReservedHandle<'static>;
35 fn into_static(self) -> Self::Output {
36 AddReservedHandle {
37 handle: self.handle.into_static(),
38 extra_data: self.extra_data.into_static(),
39 }
40 }
41}
42
43#[jacquard_derive::lexicon]
44#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
45#[serde(rename_all = "camelCase")]
46pub struct AddReservedHandleOutput<'a> {}
47impl jacquard_common::IntoStatic for AddReservedHandleOutput<'_> {
48 type Output = AddReservedHandleOutput<'static>;
49 fn into_static(self) -> Self::Output {
50 AddReservedHandleOutput {
51 extra_data: self.extra_data.into_static(),
52 }
53 }
54}
55
56impl jacquard_common::types::xrpc::XrpcRequest for AddReservedHandle<'_> {
57 const NSID: &'static str = "com.atproto.temp.addReservedHandle";
58 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
59 "application/json",
60 );
61 const OUTPUT_ENCODING: &'static str = "application/json";
62 type Output<'de> = AddReservedHandleOutput<'de>;
63 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
64}