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]

Create options with all defaults values

Enables oneline syntax by default

This is equivalent as ## syntax: oneline in a template. But template author can still override the syntax.

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]

Formats the value using the given formatter.

impl Clone for Options
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more