Struct config::CommandLineConfigurationSource
source · pub struct CommandLineConfigurationSource {
pub switch_mappings: HashMap<String, String>,
pub args: Vec<String>,
}
Available on crate feature
cmd
only.Expand description
Represents a ConfigurationSource
for command line data.
Fields§
§switch_mappings: HashMap<String, String>
Gets or sets a collection of key/value pairs representing the mapping between switches and configuration keys.
args: Vec<String>
Gets or sets the command line arguments.
Implementations§
Trait Implementations§
source§impl ConfigurationSource for CommandLineConfigurationSource
impl ConfigurationSource for CommandLineConfigurationSource
source§fn build(
&self,
_builder: &dyn ConfigurationBuilder
) -> Box<dyn ConfigurationProvider>
fn build( &self, _builder: &dyn ConfigurationBuilder ) -> Box<dyn ConfigurationProvider>
Builds the
ConfigurationProvider
for this source. Read moresource§impl Default for CommandLineConfigurationSource
impl Default for CommandLineConfigurationSource
source§fn default() -> CommandLineConfigurationSource
fn default() -> CommandLineConfigurationSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CommandLineConfigurationSource
impl Send for CommandLineConfigurationSource
impl Sync for CommandLineConfigurationSource
impl Unpin for CommandLineConfigurationSource
impl UnwindSafe for CommandLineConfigurationSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more