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 Freeze for CommandLineConfigurationSource
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