pub struct StatusArgs {
pub service: Option<String>,
pub json: bool,
}Expand description
Args for zad service status [--service <NAME>] [--json].
Without --service, every service registered in
zad::service::registry::SERVICES is pinged in parallel and a
single aggregate envelope is emitted. With --service, only the
named service is pinged and the per-service envelope is emitted.
Fields§
§service: Option<String>Limit the check to a single service (e.g. discord, telegram).
Without this flag, every service in the registry is pinged.
json: boolEmit machine-readable JSON instead of human-readable text. Recommended for agents — the envelope is stable.
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