clap_verbosity_flag

Trait LogLevel

Source
pub trait LogLevel {
    // Required method
    fn default() -> Option<Level>;

    // Provided methods
    fn verbose_help() -> Option<&'static str> { ... }
    fn verbose_long_help() -> Option<&'static str> { ... }
    fn quiet_help() -> Option<&'static str> { ... }
    fn quiet_long_help() -> Option<&'static str> { ... }
}
Expand description

Customize the default log-level and associated help

Required Methods§

Source

fn default() -> Option<Level>

Base-line level before applying --verbose and --quiet

Provided Methods§

Source

fn verbose_help() -> Option<&'static str>

Short-help message for --verbose

Source

fn verbose_long_help() -> Option<&'static str>

Long-help message for --verbose

Source

fn quiet_help() -> Option<&'static str>

Short-help message for --quiet

Source

fn quiet_long_help() -> Option<&'static str>

Long-help message for --quiet

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§