pub enum Verbosity {
Quiet,
NoWarnings,
Normal,
Verbose,
}Expand description
The requested verbosity of output.
§Ordering
Verbosity::Quiet < Verbosity::NoWarnings < Verbosity::Normal < Verbosity::Verbose
Variants§
Quiet
Avoid printing anything to standard output.
String representation: quiet.
NoWarnings
Avoid printing warnings to standard output.
String representation: no-warnings.
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.
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Check if the verbosity level is the default one.
Trait Implementations§
Source§impl From<VerbositySpec> for Verbosity
impl From<VerbositySpec> for Verbosity
Source§fn from(spec: VerbositySpec) -> Self
fn from(spec: VerbositySpec) -> Self
Converts to this type from the input type.
Source§impl Ord for Verbosity
impl Ord for Verbosity
Source§impl PartialOrd for Verbosity
impl PartialOrd for Verbosity
impl Copy for Verbosity
impl Eq for Verbosity
impl StructuralPartialEq for Verbosity
Auto Trait Implementations§
impl Freeze for Verbosity
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