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]

[src]

Create options with all defaults values

[src]

Enables oneline syntax by default

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

[src]

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]

[src]

Formats the value using the given formatter.

impl Clone for Options
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more