pub struct HtmlTemplateUpdate {
pub html: Option<Option<String>>,
pub html_file_id: Option<Option<i64>>,
pub is_global: Option<Option<bool>>,
pub mjml: Option<Option<String>>,
pub name: Option<Option<String>>,
pub extra: Map<String, Value>,
}Expand description
Partial metadata/content update. Omission or null preserves existing values; null does not delete content. HTML/MJML are independent sources and are not rendered/compiled here.
Fields§
§html: Option<Option<String>>Replace HTML source when nonempty and truthy; null/omission and the string 0 preserve existing content. Empty string fails validation.
None leaves the field out, Some(None) sends null.
html_file_id: Option<Option<i64>>Attach a file in the html_template domain, either already belonging to this template or an unbound upload (domainId=-1) created by the current user. Evaluated after html/mjml updates; deletes other content files and clears mjmlFileId. Null/0/omission preserves the current reference.
None leaves the field out, Some(None) sends null.
is_global: Option<Option<bool>>Change shared availability; null/omission preserves it. Membership-document and donation-receipt templates must stay global.
None leaves the field out, Some(None) sends null.
mjml: Option<Option<String>>Replace MJML source independently; null/omission and the string 0 preserve it. Empty string fails validation.
None leaves the field out, Some(None) sends null.
name: Option<Option<String>>New trimmed display name; null/omission preserves it. The current service also ignores the otherwise valid name 0.
None leaves the field out, Some(None) sends null.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.