A better Rust ATProto crate
at main 2.0 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 jacquard_derive::IntoStatic, 17 Default 18)] 19#[serde(rename_all = "camelCase")] 20pub struct AddReservedHandle<'a> { 21 #[serde(borrow)] 22 pub handle: jacquard_common::CowStr<'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 Default 35)] 36#[serde(rename_all = "camelCase")] 37pub struct AddReservedHandleOutput<'a> {} 38///Response type for 39///com.atproto.temp.addReservedHandle 40pub struct AddReservedHandleResponse; 41impl jacquard_common::xrpc::XrpcResp for AddReservedHandleResponse { 42 const NSID: &'static str = "com.atproto.temp.addReservedHandle"; 43 const ENCODING: &'static str = "application/json"; 44 type Output<'de> = AddReservedHandleOutput<'de>; 45 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 46} 47 48impl<'a> jacquard_common::xrpc::XrpcRequest for AddReservedHandle<'a> { 49 const NSID: &'static str = "com.atproto.temp.addReservedHandle"; 50 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 51 "application/json", 52 ); 53 type Response = AddReservedHandleResponse; 54} 55 56///Endpoint type for 57///com.atproto.temp.addReservedHandle 58pub struct AddReservedHandleRequest; 59impl jacquard_common::xrpc::XrpcEndpoint for AddReservedHandleRequest { 60 const PATH: &'static str = "/xrpc/com.atproto.temp.addReservedHandle"; 61 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 62 "application/json", 63 ); 64 type Request<'de> = AddReservedHandle<'de>; 65 type Response = AddReservedHandleResponse; 66}