pub enum Verbosity {
Quiet,
Normal,
Verbose,
}Expand description
The requested verbosity of output.
Ordering
Variants§
Quiet
Avoid printing anything to standard output.
String representation: quiet.
Normal
Default verbosity level.
String representation: normal.
Verbose
Print extra information to standard output.
String representation: verbose.
Implementations§
source§impl Verbosity
impl Verbosity
sourcepub fn from_env_var(env_var_name: &str) -> Result<Self>
pub fn from_env_var(env_var_name: &str) -> Result<Self>
Get the verbosity level from the given environment variable.
Environment variable value is decoding using Verbosity::from_str.
See Verbosity variants documentation for valid values.
Trait Implementations§
source§impl Ord for Verbosity
impl Ord for Verbosity
source§impl PartialEq for Verbosity
impl PartialEq for Verbosity
source§impl PartialOrd for Verbosity
impl PartialOrd for Verbosity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Verbosity
impl Eq for Verbosity
impl StructuralEq for Verbosity
impl StructuralPartialEq for Verbosity
Auto Trait Implementations§
impl RefUnwindSafe for Verbosity
impl Send for Verbosity
impl Sync for Verbosity
impl Unpin for Verbosity
impl UnwindSafe for Verbosity
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