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
[src]
Create options with all defaults values
fn syntax_oneline(&mut self) -> &mut Self
[src]
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
[src]
Enables indent
syntax by default
This is equivalent as ## syntax: indent
in a template. But
template author can still override the syntax.