// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: tools.ozone.communication.listTemplates // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct ListTemplatesOutput<'a> { #[serde(borrow)] pub communication_templates: Vec< crate::tools_ozone::communication::TemplateView<'a>, >, } /// XRPC request marker type #[derive( Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize, jacquard_derive::IntoStatic )] pub struct ListTemplates; /// Response type for ///tools.ozone.communication.listTemplates pub struct ListTemplatesResponse; impl jacquard_common::xrpc::XrpcResp for ListTemplatesResponse { const NSID: &'static str = "tools.ozone.communication.listTemplates"; const ENCODING: &'static str = "application/json"; type Output<'de> = ListTemplatesOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl jacquard_common::xrpc::XrpcRequest for ListTemplates { const NSID: &'static str = "tools.ozone.communication.listTemplates"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListTemplatesResponse; } /// Endpoint type for ///tools.ozone.communication.listTemplates pub struct ListTemplatesRequest; impl jacquard_common::xrpc::XrpcEndpoint for ListTemplatesRequest { const PATH: &'static str = "/xrpc/tools.ozone.communication.listTemplates"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = ListTemplates; type Response = ListTemplatesResponse; }