pub struct Emission<'a> {
pub eng: Rc<Engine>,
pub menv: Rc<Env>,
pub root_name: String,
pub value: Value,
pub form: Form,
pub yaml: Option<bool>,
pub indent: Option<usize>,
pub template: Option<(String, String, String)>,
pub read_template: &'a dyn Fn(&str) -> Option<String>,
}Expand description
what emits one root: its value, its form with the invocation’s overrides, and the template’s text when there is one
Fields§
§eng: Rc<Engine>the engine of the run
menv: Rc<Env>the entry module’s environment
root_name: Stringthe root’s name
value: Valuethe root’s value
form: Formthe declared form
yaml: Option<bool>--format yaml / --format json
indent: Option<usize>--indent n
template: Option<(String, String, String)>the template’s path as given, its text, and the absolute directory its includes resolve from
read_template: &'a dyn Fn(&str) -> Option<String>the text of a template file by absolute path
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Emission<'a>
impl<'a> !Send for Emission<'a>
impl<'a> !Sync for Emission<'a>
impl<'a> !UnwindSafe for Emission<'a>
impl<'a> Forget for Emission<'a>
impl<'a> Freeze for Emission<'a>
impl<'a> Move for Emission<'a>
impl<'a> Unpin for Emission<'a>
impl<'a> UnsafeUnpin for Emission<'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