Struct trimmer::Options
[−]
[src]
pub struct Options { /* fields omitted */ }
Options of the template
Usually all options are set in the template itself using
## syntax ...
and ## validator...
directives, but this object
can be prefilled with better default that suit your application. For
example, if you use template for a log message it's good idea to use
## syntax: oneline
but it's tedious to write it every time.
Methods
impl Options
[src]
fn new() -> Options
Create options with all defaults values
fn syntax_oneline(&mut self) -> &mut Self
Enables oneline
syntax by default
This is equivalent as ## syntax: oneline
in a template. But
template author can still override the syntax.
fn syntax_indent(&mut self) -> &mut Self
Enables indent
syntax by default
This is equivalent as ## syntax: indent
in a template. But
template author can still override the syntax.
Trait Implementations
impl Debug for Options
[src]
impl Clone for Options
[src]
fn clone(&self) -> Options
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more