Struct irx_config::parsers::FileParser
source · pub struct FileParser<L: Load + Default> { /* private fields */ }
Expand description
The base structure to implement file based parsers.
Trait Implementations§
source§impl<L: Load + Default> Case for FileParser<L>
impl<L: Load + Default> Case for FileParser<L>
source§fn is_case_sensitive(&self) -> bool
fn is_case_sensitive(&self) -> bool
Return
true
if case sensitive, otherwise return false
.source§impl<L: Load + Default> Parse for FileParser<L>
impl<L: Load + Default> Parse for FileParser<L>
source§fn parse(&mut self, value: &Value) -> AnyResult<Value>
fn parse(&mut self, value: &Value) -> AnyResult<Value>
Parse data to
Value
structure. The value
parameter could hold merged results from previous parser(s)
call(s). That merged value
could be used to get some parameter(s) for current parse. For example, path to
configuration file could be taken from previous command-line parser results (see FileParser<L>::path_option
or
env::ParserBuilder::prefix_option
). If successful then data return as Value
structure. Read more