pub struct StatusArgs {
pub json: bool,
}Expand description
Arguments for the cache status subcommand.
Fields§
§json: boolOutput status in JSON format for scripting.
Backward-compatible alias for the global --output json
flag (see crate::cli::OutputMode). When this flag is set,
the command behaves exactly as if the user had invoked
subx-cli --output json cache status: the same JSON envelope
is rendered through crate::cli::output::emit_success and the
stdout bytes are guaranteed to be byte-identical between the
two invocations. Per the cache-management spec this alias is
limited to cache status; no other cache subcommand exposes a
--json flag.
Trait Implementations§
Source§impl Args for StatusArgs
impl Args for StatusArgs
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 Debug for StatusArgs
impl Debug for StatusArgs
Source§impl FromArgMatches for StatusArgs
impl FromArgMatches for StatusArgs
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 StatusArgs
impl RefUnwindSafe for StatusArgs
impl Send for StatusArgs
impl Sync for StatusArgs
impl Unpin for StatusArgs
impl UnsafeUnpin for StatusArgs
impl UnwindSafe for StatusArgs
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