shrike 0.1.1

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CommunicationListTemplatesOutput {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub communication_templates: Vec<crate::api::tools::ozone::CommunicationDefsTemplateView>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// CommunicationListTemplates — Get list of all communication templates.
pub async fn communication_list_templates(
    client: &crate::xrpc::Client,
) -> Result<CommunicationListTemplatesOutput, crate::xrpc::Error> {
    client
        .query("tools.ozone.communication.listTemplates", &())
        .await
}