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 bon::Builder
23)]
24#[serde(rename_all = "camelCase")]
25pub struct TemplateView<'a> {
26 /// Subject of the message, used in emails.
27 #[serde(borrow)]
28 #[builder(into)]
29 pub content_markdown: jacquard_common::CowStr<'a>,
30 pub created_at: jacquard_common::types::string::Datetime,
31 pub disabled: bool,
32 #[serde(borrow)]
33 #[builder(into)]
34 pub id: jacquard_common::CowStr<'a>,
35 /// Message language.
36 #[serde(skip_serializing_if = "std::option::Option::is_none")]
37 #[builder(into)]
38 pub lang: Option<jacquard_common::types::string::Language>,
39 /// DID of the user who last updated the template.
40 #[serde(borrow)]
41 pub last_updated_by: jacquard_common::types::string::Did<'a>,
42 /// Name of the template.
43 #[serde(borrow)]
44 #[builder(into)]
45 pub name: jacquard_common::CowStr<'a>,
46 /// Content of the template, can contain markdown and variable placeholders.
47 #[serde(skip_serializing_if = "std::option::Option::is_none")]
48 #[builder(into)]
49 #[serde(borrow)]
50 pub subject: Option<jacquard_common::CowStr<'a>>,
51 pub updated_at: jacquard_common::types::string::Datetime,
52}