A better Rust ATProto crate
at lifetimes 1.5 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: tools.ozone.communication.defs 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8pub mod create_template; 9pub mod delete_template; 10pub mod list_templates; 11pub mod update_template; 12 13#[jacquard_derive::lexicon] 14#[derive( 15 serde::Serialize, 16 serde::Deserialize, 17 Debug, 18 Clone, 19 PartialEq, 20 Eq, 21 jacquard_derive::IntoStatic 22)] 23#[serde(rename_all = "camelCase")] 24pub struct TemplateView<'a> { 25 ///Subject of the message, used in emails. 26 #[serde(borrow)] 27 pub content_markdown: jacquard_common::CowStr<'a>, 28 pub created_at: jacquard_common::types::string::Datetime, 29 pub disabled: bool, 30 #[serde(borrow)] 31 pub id: jacquard_common::CowStr<'a>, 32 ///Message language. 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 pub lang: std::option::Option<jacquard_common::types::string::Language>, 35 ///DID of the user who last updated the template. 36 #[serde(borrow)] 37 pub last_updated_by: jacquard_common::types::string::Did<'a>, 38 ///Name of the template. 39 #[serde(borrow)] 40 pub name: jacquard_common::CowStr<'a>, 41 ///Content of the template, can contain markdown and variable placeholders. 42 #[serde(skip_serializing_if = "std::option::Option::is_none")] 43 #[serde(borrow)] 44 pub subject: std::option::Option<jacquard_common::CowStr<'a>>, 45 pub updated_at: jacquard_common::types::string::Datetime, 46}