pub struct TemplateContext<'a> {
pub field_values: &'a BTreeMap<String, Value>,
pub process_ctx: &'a dyn ProcessContext,
pub node_outputs: &'a BTreeMap<String, Value>,
pub loop_item: &'a Option<Map<String, Value>>,
}Expand description
All template namespace sources bundled for resolution.
Fields§
§field_values: &'a BTreeMap<String, Value>Field values from node field definitions + user overrides.
process_ctx: &'a dyn ProcessContextSystem access for env vars and working directory.
node_outputs: &'a BTreeMap<String, Value>Per-node output params from previously executed nodes.
loop_item: &'a Option<Map<String, Value>>Current loop iteration’s per-file metadata for {{item.*}} templates.
Auto Trait Implementations§
impl<'a> Freeze for TemplateContext<'a>
impl<'a> !RefUnwindSafe for TemplateContext<'a>
impl<'a> Send for TemplateContext<'a>
impl<'a> Sync for TemplateContext<'a>
impl<'a> Unpin for TemplateContext<'a>
impl<'a> UnsafeUnpin for TemplateContext<'a>
impl<'a> !UnwindSafe for TemplateContext<'a>
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