pub struct VerbositySpec { /* private fields */ }Expand description
clap structured arguments that provide Scarb UI verbosity selection.
Implementations§
Source§impl VerbositySpec
impl VerbositySpec
Sourcepub fn is_present(&self) -> bool
pub fn is_present(&self) -> bool
Whether any verbosity flags (either --verbose, --quiet, or --no-warnings)
are present on the command line.
Sourcepub fn as_trace(&self) -> String
pub fn as_trace(&self) -> String
Convert the verbosity specification to a tracing_core::LevelFilter.
Trait Implementations§
Source§impl Args for VerbositySpec
impl Args for VerbositySpec
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 VerbositySpec
impl Clone for VerbositySpec
Source§fn clone(&self) -> VerbositySpec
fn clone(&self) -> VerbositySpec
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 Debug for VerbositySpec
impl Debug for VerbositySpec
Source§impl Default for VerbositySpec
impl Default for VerbositySpec
Source§fn default() -> VerbositySpec
fn default() -> VerbositySpec
Returns the “default value” for a type. Read more
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 FromArgMatches for VerbositySpec
impl FromArgMatches for VerbositySpec
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.Auto Trait Implementations§
impl Freeze for VerbositySpec
impl RefUnwindSafe for VerbositySpec
impl Send for VerbositySpec
impl Sync for VerbositySpec
impl Unpin for VerbositySpec
impl UnwindSafe for VerbositySpec
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