pub struct EmailPreviewCreate {
pub content: Vec<String>,
pub email_template_id: Option<i64>,
pub group_id: Option<i64>,
pub person_id: i64,
pub subject: Option<String>,
pub user_id: Option<i64>,
pub extra: Map<String, Value>,
}Expand description
Render one visible person’s email content for preview. This does not create a draft or send an email.
Fields§
§content: Vec<String>HTML/text fragments concatenated in order without inserting whitespace. Empty array produces an empty body before optional template wrapping.
email_template_id: Option<i64>Optional HTML template. All literal {{body}} tokens are replaced with the concatenated content before placeholders are resolved. If the template has no HTML file, content is used directly.
group_id: Option<i64>Optional visible group providing group and membership placeholders. Template access can also be granted through permission to view this group’s automatic emails.
person_id: i64ID of the person used to render person placeholders
subject: Option<String>Optional email subject to render with placeholders
user_id: Option<i64>Optional acting-user context used by placeholder decorators; omit to use the current context. This is distinct from the recipient personId. Context handling currently differs between placeholder types.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.