pub struct Options {
pub cli: Option<Cli>,
pub default_config_file: Option<&'static str>,
pub env_prefix: Option<&'static str>,
}
Expand description
Options to customize parsing
Fields§
§cli: Option<Cli>
Available on crate feature
cli
only.The CLI options
default_config_file: Option<&'static str>
The default config file name (loaded if no other files are specified)
env_prefix: Option<&'static str>
Environment variables prefix
A setting called foo
would be read from the environment as APP_FOO
where APP
is the prefix.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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