pub struct Options {
pub unknown_include: ErrorLevel,
pub unset_varaible: ErrorLevel,
pub include_method: IncludeMethod,
}
Fields
unknown_include: ErrorLevel
unset_varaible: ErrorLevel
include_method: IncludeMethod
Implementations
sourceimpl Options
impl Options
pub fn new() -> Self
sourcepub fn unknown_includer<E: Into<ErrorLevel>>(self, error_level: E) -> Self
pub fn unknown_includer<E: Into<ErrorLevel>>(self, error_level: E) -> Self
Sets whether or not an unresolvable include is an error or not.
Default
By default this is set true
and if an include cannot be found in the
path, the document will fail to parse.
sourcepub fn unset_varaible<E: Into<ErrorLevel>>(self, error_level: E) -> Self
pub fn unset_varaible<E: Into<ErrorLevel>>(self, error_level: E) -> Self
Sets whether or not an unfilled variable is an error or not
Default
By default this is set false
. Unset variables are emitted as text when
the document is compiled.
sourcepub fn include_path(self, include_path: IncludeMethod) -> Self
pub fn include_path(self, include_path: IncludeMethod) -> Self
Sets the path where included templates are searched for. See IncludeMethod for more information.
Default
By default this is set to IncludeMethod::Template.
Trait Implementations
impl StructuralPartialEq for Options
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more