pub enum ValueSource {
CommandLine,
ConfigFile,
}Expand description
Which layer supplied a value that failed validation.
The same limit is reachable from a flag and from config.toml, and the two
carry different exit codes (65 vs 78) because they need different fixes.
Recording the layer keeps one variant serving both without guessing.
Variants§
Trait Implementations§
Source§impl Clone for ValueSource
impl Clone for ValueSource
impl Copy for ValueSource
Source§impl Debug for ValueSource
impl Debug for ValueSource
impl Eq for ValueSource
Source§impl PartialEq for ValueSource
impl PartialEq for ValueSource
impl StructuralPartialEq for ValueSource
Auto Trait Implementations§
impl Freeze for ValueSource
impl RefUnwindSafe for ValueSource
impl Send for ValueSource
impl Sync for ValueSource
impl Unpin for ValueSource
impl UnsafeUnpin for ValueSource
impl UnwindSafe for ValueSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.