A better Rust ATProto crate
at lifetimes 2.3 kB view raw
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 jacquard_derive::IntoStatic 18)] 19#[serde(rename_all = "camelCase")] 20#[builder(start_fn = new)] 21pub struct AddReservedHandle<'a> { 22 #[serde(borrow)] 23 #[builder(into)] 24 pub handle: jacquard_common::CowStr<'a>, 25 #[serde(flatten)] 26 #[serde(borrow)] 27 #[builder(default)] 28 pub extra_data: ::std::collections::BTreeMap< 29 ::jacquard_common::smol_str::SmolStr, 30 ::jacquard_common::types::value::Data<'a>, 31 >, 32} 33 34#[jacquard_derive::lexicon] 35#[derive( 36 serde::Serialize, 37 serde::Deserialize, 38 Debug, 39 Clone, 40 PartialEq, 41 Eq, 42 jacquard_derive::IntoStatic 43)] 44#[serde(rename_all = "camelCase")] 45pub struct AddReservedHandleOutput<'a> {} 46///Response type for 47///com.atproto.temp.addReservedHandle 48pub struct AddReservedHandleResponse; 49impl jacquard_common::xrpc::XrpcResp for AddReservedHandleResponse { 50 const NSID: &'static str = "com.atproto.temp.addReservedHandle"; 51 const ENCODING: &'static str = "application/json"; 52 type Output<'de> = AddReservedHandleOutput<'de>; 53 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 54} 55 56impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AddReservedHandle<'de> { 57 const NSID: &'static str = "com.atproto.temp.addReservedHandle"; 58 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 59 "application/json", 60 ); 61 type Response = AddReservedHandleResponse; 62} 63 64///Endpoint type for 65///com.atproto.temp.addReservedHandle 66pub struct AddReservedHandleRequest; 67impl jacquard_common::xrpc::XrpcEndpoint for AddReservedHandleRequest { 68 const PATH: &'static str = "/xrpc/com.atproto.temp.addReservedHandle"; 69 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 70 "application/json", 71 ); 72 type Request<'de> = AddReservedHandle<'de>; 73 type Response = AddReservedHandleResponse; 74}