pub struct HtmlTemplate {
pub domain_type: String,
pub is_global: bool,
pub name: String,
pub html_file_id: Option<i64>,
pub id: i64,
pub meta: MetaDataEntityId,
pub mjml_file_id: Option<i64>,
pub owner: Option<DomainObjectPerson>,
pub extra: Map<String, Value>,
}Expand description
Stored template metadata. HTML and MJML content are separate file references; retrieve the corresponding content endpoints for source text. Image assets are stored separately.
Fields§
§domain_type: StringTemplate purpose: email for group-member emails, bulkletter for mail-merged letters, groupmember-document for membership documents, and donation-receipt-letter/attachment for donation receipt output.
Allowed values: bulkletter, donation-receipt-attachment, donation-receipt-letter, email, groupmember-document.
is_global: boolWhether the template is shared for its domain. Shared availability still depends on template/domain permissions; ownership is retained even for global templates.
name: StringDisplay name of the HTML template.
html_file_id: Option<i64>ID of the stored HTML content file, or null if no HTML content is stored.
id: i64ID of the HTML template.
meta: MetaDataEntityId§mjml_file_id: Option<i64>ID of the stored MJML content file, or null if no MJML content is stored.
owner: Option<DomainObjectPerson>Creator/owner of the template, including global templates; null is possible for imported or legacy ownerless records.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.