pub struct GlobalFlags {Show 13 fields
pub output_format: String,
pub verbose: String,
pub dry_run: bool,
pub fields: String,
pub fields_explicit: bool,
pub filter: String,
pub expr: String,
pub schema: bool,
pub reason: String,
pub timeout: String,
pub debug: String,
pub credential_store: Option<CredentialStore>,
pub interactive: bool,
}Expand description
Parsed framework-global flags.
Applications can add their own global flags, but these are the built-in controls understood by middleware and the output pipeline.
Fields§
§output_format: StringOutput format: json, human, or toon.
verbose: StringMetadata verbosity selector.
dry_run: boolWhether mutating commands should short-circuit.
fields: StringField projection.
fields_explicit: boolWhether fields came from an explicit --fields flag on the command
line, rather than clap filling in a command’s default_fields (a
command with default_fields set registers it as that flag’s native
default, so fields is non-empty even when the user never typed
--fields — this is the only reliable way to tell the two apart).
filter: StringJMESPath per-item filter.
expr: StringJMESPath whole-result expression.
schema: boolWhether schema rendering was requested.
reason: StringUser-provided command reason.
timeout: StringRaw timeout string.
debug: StringDebug selector.
credential_store: Option<CredentialStore>Credential storage override from --credential-store, if supplied.
interactive: boolInteractivity mode: true enables prompts for missing inputs,
false disables them. Auto-detected from TTY when neither flag is given.
Trait Implementations§
Source§impl Clone for GlobalFlags
impl Clone for GlobalFlags
Source§fn clone(&self) -> GlobalFlags
fn clone(&self) -> GlobalFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalFlags
impl Debug for GlobalFlags
Source§impl Default for GlobalFlags
impl Default for GlobalFlags
impl Eq for GlobalFlags
Source§impl PartialEq for GlobalFlags
impl PartialEq for GlobalFlags
impl StructuralPartialEq for GlobalFlags
Auto Trait Implementations§
impl Freeze for GlobalFlags
impl RefUnwindSafe for GlobalFlags
impl Send for GlobalFlags
impl Sync for GlobalFlags
impl Unpin for GlobalFlags
impl UnsafeUnpin for GlobalFlags
impl UnwindSafe for GlobalFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.