pub struct Template {
pub roots: Vec<String>,
pub needs_cel: bool,
/* private fields */
}Expand description
A compiled template. Parsing is done once (at config load); rendering is per turn.
Fields§
§roots: Vec<String>Every root identifier the template reads — used to fail closed on a typo’d reference at load instead of rendering a silent empty hole.
needs_cel: boolWhether any expression needs CEL (i.e. is not a bare path).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Template
impl UnwindSafe for Template
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more