pub struct ExpireArgs {
pub entry_id: Option<String>,
pub symbol: Option<String>,
pub query: Option<String>,
pub dry_run: bool,
pub json: bool,
}Expand description
Selectors are mutually exclusive and one is required — expiring everything because a flag was forgotten is not a recoverable mistake.
Fields§
§entry_id: Option<String>Entry id to expire (from asd feedback list).
symbol: Option<String>Expire every verdict recorded against this symbol qname.
query: Option<String>Expire every verdict recorded for this query (matched as the stored normalized form: lowercased and trimmed).
dry_run: boolShow what would be expired without writing.
json: boolEmit machine-readable JSON.
Trait Implementations§
Source§impl Args for ExpireArgs
impl Args for ExpireArgs
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 ExpireArgs
impl Debug for ExpireArgs
Source§impl FromArgMatches for ExpireArgs
impl FromArgMatches for ExpireArgs
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 ExpireArgs
impl RefUnwindSafe for ExpireArgs
impl Send for ExpireArgs
impl Sync for ExpireArgs
impl Unpin for ExpireArgs
impl UnsafeUnpin for ExpireArgs
impl UnwindSafe for ExpireArgs
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