pub struct GlobalFlags {
pub output_format: String,
pub verbose: String,
pub dry_run: bool,
pub fields: String,
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.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.