A better Rust ATProto crate
at main 1.9 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: tools.ozone.communication.listTemplates 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)] 18#[serde(rename_all = "camelCase")] 19pub struct ListTemplatesOutput<'a> { 20 #[serde(borrow)] 21 pub communication_templates: Vec< 22 crate::tools_ozone::communication::TemplateView<'a>, 23 >, 24} 25 26/// XRPC request marker type 27#[derive( 28 Debug, 29 Clone, 30 Copy, 31 PartialEq, 32 Eq, 33 serde::Serialize, 34 serde::Deserialize, 35 jacquard_derive::IntoStatic 36)] 37pub struct ListTemplates; 38///Response type for 39///tools.ozone.communication.listTemplates 40pub struct ListTemplatesResponse; 41impl jacquard_common::xrpc::XrpcResp for ListTemplatesResponse { 42 const NSID: &'static str = "tools.ozone.communication.listTemplates"; 43 const ENCODING: &'static str = "application/json"; 44 type Output<'de> = ListTemplatesOutput<'de>; 45 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 46} 47 48impl jacquard_common::xrpc::XrpcRequest for ListTemplates { 49 const NSID: &'static str = "tools.ozone.communication.listTemplates"; 50 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 51 type Response = ListTemplatesResponse; 52} 53 54///Endpoint type for 55///tools.ozone.communication.listTemplates 56pub struct ListTemplatesRequest; 57impl jacquard_common::xrpc::XrpcEndpoint for ListTemplatesRequest { 58 const PATH: &'static str = "/xrpc/tools.ozone.communication.listTemplates"; 59 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 60 type Request<'de> = ListTemplates; 61 type Response = ListTemplatesResponse; 62}