Struct flexi_config::Issues
[−]
[src]
pub struct Issues { pub errors: Vec<String>, pub warnings: Vec<String>, }
Simple structure to return the set of warnings and errors encountered when loading a configuration TOML file.
Fields
errors: Vec<String>
the list of errors that will keep the file from being loaded.
warnings: Vec<String>
The list of warnings that will keep the file from being loaded.
Methods
impl Issues
[src]
fn new() -> Issues
Constructs a new instance of the object.
fn single(error: String) -> Issues
Constructs a new instance of the object and populates the error with an initial issue.
fn has_errors(&self) -> bool
Helper function that checks the length of errors and returns true if it's greater than 0.
fn has_warnings(&self) -> bool
Helper function that checks the length of warnings and returns true if it's greater than 0.
Trait Implementations
impl Clone for Issues
[src]
fn clone(&self) -> Issues
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