A better Rust ATProto crate
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: com.atproto.server.deleteSession 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8/// XRPC request marker type 9#[derive( 10 Debug, 11 Clone, 12 Copy, 13 PartialEq, 14 Eq, 15 serde::Serialize, 16 serde::Deserialize, 17 jacquard_derive::IntoStatic 18)] 19pub struct DeleteSession; 20///Response type for 21///com.atproto.server.deleteSession 22pub struct DeleteSessionResponse; 23impl jacquard_common::xrpc::XrpcResp for DeleteSessionResponse { 24 const NSID: &'static str = "com.atproto.server.deleteSession"; 25 const ENCODING: &'static str = "application/json"; 26 type Output<'de> = (); 27 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 28} 29 30impl jacquard_common::xrpc::XrpcRequest for DeleteSession { 31 const NSID: &'static str = "com.atproto.server.deleteSession"; 32 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 33 "application/json", 34 ); 35 type Response = DeleteSessionResponse; 36} 37 38///Endpoint type for 39///com.atproto.server.deleteSession 40pub struct DeleteSessionRequest; 41impl jacquard_common::xrpc::XrpcEndpoint for DeleteSessionRequest { 42 const PATH: &'static str = "/xrpc/com.atproto.server.deleteSession"; 43 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 44 "application/json", 45 ); 46 type Request<'de> = DeleteSession; 47 type Response = DeleteSessionResponse; 48}