pub struct DiffArgs {
pub date1: String,
pub date2: String,
pub output: DiffOutput,
pub json: bool,
pub no_newline: bool,
pub now: Option<String>,
pub timezone: Option<String>,
pub verbose: bool,
}Expand description
Arguments for the diff subcommand.
Fields§
§date1: StringFirst date expression
date2: StringSecond date expression
output: DiffOutputSelect which diff format to output
json: boolOutput as JSON
no_newline: boolSuppress trailing newline
now: Option<String>Override “now” reference (RFC 3339)
timezone: Option<String>Time-zone for resolution
verbose: boolPrint verbose diagnostics to stderr
Trait Implementations§
Source§impl Args for DiffArgs
impl Args for DiffArgs
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 FromArgMatches for DiffArgs
impl FromArgMatches for DiffArgs
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 DiffArgs
impl RefUnwindSafe for DiffArgs
impl Send for DiffArgs
impl Sync for DiffArgs
impl Unpin for DiffArgs
impl UnsafeUnpin for DiffArgs
impl UnwindSafe for DiffArgs
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