pub struct CliLoggingConfig {
pub log_level: Option<String>,
}Expand description
CLI-specific logging configuration
Fields§
§log_level: Option<String>Logging level (e.g., INFO, WARN, ERROR) [default: INFO]
Implementations§
Source§impl CliLoggingConfig
impl CliLoggingConfig
Sourcepub fn into_logging_config(self) -> LoggingConfig
pub fn into_logging_config(self) -> LoggingConfig
Convert CLI logging config to internal LoggingConfig
Trait Implementations§
Source§impl Args for CliLoggingConfig
impl Args for CliLoggingConfig
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CliLoggingConfig
impl Clone for CliLoggingConfig
Source§fn clone(&self) -> CliLoggingConfig
fn clone(&self) -> CliLoggingConfig
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 CommandFactory for CliLoggingConfig
impl CommandFactory for CliLoggingConfig
Source§impl Debug for CliLoggingConfig
impl Debug for CliLoggingConfig
Source§impl FromArgMatches for CliLoggingConfig
impl FromArgMatches for CliLoggingConfig
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for CliLoggingConfig
impl Parser for CliLoggingConfig
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CliLoggingConfig
impl RefUnwindSafe for CliLoggingConfig
impl Send for CliLoggingConfig
impl Sync for CliLoggingConfig
impl Unpin for CliLoggingConfig
impl UnwindSafe for CliLoggingConfig
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