pub enum ConfigOption {
EnvPrefix(String),
ExplicitSource(Source),
}
Expand description
Settings to build an instance of a struct, implementing ConfigInit
.
Note Each option takes precedence over the corresponding structure attribute (see cookbook for more information).
Variants§
EnvPrefix(String)
Prefix of the environment variables.
ExplicitSource(Source)
Replacement of the usual source.
Trait Implementations§
Source§impl Clone for ConfigOption
impl Clone for ConfigOption
Source§fn clone(&self) -> ConfigOption
fn clone(&self) -> ConfigOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConfigOption
impl Debug for ConfigOption
Source§impl Hash for ConfigOption
impl Hash for ConfigOption
Source§impl PartialEq for ConfigOption
impl PartialEq for ConfigOption
impl Eq for ConfigOption
Auto Trait Implementations§
impl Freeze for ConfigOption
impl !RefUnwindSafe for ConfigOption
impl Send for ConfigOption
impl Sync for ConfigOption
impl Unpin for ConfigOption
impl !UnwindSafe for ConfigOption
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