pub struct GlobalOptions {
pub cli_data_dir: Option<String>,
pub verbose: bool,
pub log_to_file: Option<PathBuf>,
pub log: Option<Level>,
pub disable_telemetry: bool,
pub telemetry_level: Option<TelemetryLevel>,
}
Fields§
§cli_data_dir: Option<String>
Directory where CLI metadata should be stored.
verbose: bool
Print verbose output (implies –wait).
log_to_file: Option<PathBuf>
Log to a file in addition to stdout. Used when running as a service.
log: Option<Level>
Log level to use.
disable_telemetry: bool
Disable telemetry for the current command, even if it was previously accepted as part of the license prompt or specified in ‘–telemetry-level’
telemetry_level: Option<TelemetryLevel>
Sets the initial telemetry level
Implementations§
Source§impl GlobalOptions
impl GlobalOptions
pub fn add_code_args(&self, target: &mut Vec<String>)
Trait Implementations§
Source§impl Args for GlobalOptions
impl Args for GlobalOptions
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 GlobalOptions
impl Clone for GlobalOptions
Source§fn clone(&self) -> GlobalOptions
fn clone(&self) -> GlobalOptions
Returns a copy 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 GlobalOptions
impl Debug for GlobalOptions
Source§impl Default for GlobalOptions
impl Default for GlobalOptions
Source§fn default() -> GlobalOptions
fn default() -> GlobalOptions
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for GlobalOptions
impl FromArgMatches for GlobalOptions
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 GlobalOptions
impl RefUnwindSafe for GlobalOptions
impl Send for GlobalOptions
impl Sync for GlobalOptions
impl Unpin for GlobalOptions
impl UnwindSafe for GlobalOptions
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