pub struct RenderOptions {
pub inputs: Vec<(String, Document)>,
pub outputs: Vec<String>,
pub yaml: Option<bool>,
pub indent: Option<usize>,
pub templates: Vec<(String, TemplateSource)>,
}Expand description
the options of render (docs/tooling/05_render.md §7)
Fields§
§inputs: Vec<(String, Document)>documents to bind, by input name
outputs: Vec<String>the roots to return; empty: the entry module’s exported outputs
yaml: Option<bool>Some(true) for YAML, Some(false) for JSON: overrides every root’s declared format
indent: Option<usize>the layout: overrides every root’s declared indent
templates: Vec<(String, TemplateSource)>templates by root name ("*" for every root without one of its own)
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§impl Debug for RenderOptions
impl Debug for RenderOptions
Auto Trait Implementations§
impl Forget for RenderOptions
impl Freeze for RenderOptions
impl Move for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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