Struct mpot_http::TemplateRenderContext
source · pub struct TemplateRenderContext<'ctx, F>where
F: Fn() -> Template,{
pub template: &'ctx str,
pub default_fn: Option<F>,
pub list: &'ctx DbVal<MailingList>,
pub context: Value,
pub queue: Queue,
pub comment: Cow<'static, str>,
}
Expand description
Helper type for Connection::send_reply_with_list_template
.
Fields§
§template: &'ctx str
Template name.
default_fn: Option<F>
If template is not found, call a function that returns one.
list: &'ctx DbVal<MailingList>
The pertinent list.
context: Value
[minijinja
]’s template context.
queue: Queue
Destination queue in the database.
comment: Cow<'static, str>
Comment for the queue entry in the database.