pub struct RangeArgs {
pub input: String,
pub format: Option<String>,
pub timezone: Option<String>,
pub now: Option<String>,
pub delimiter: String,
pub json: bool,
pub no_newline: bool,
pub verbose: bool,
}Expand description
Arguments for the range subcommand.
Fields§
§input: StringDate expression to expand as range
format: Option<String>Output format (strftime pattern or preset name)
timezone: Option<String>Time-zone to apply (IANA/Olson ID)
now: Option<String>Override “now” reference (RFC 3339)
delimiter: StringDelimiter between start and end in plain-text output (default: newline).
json: boolOutput as JSON
no_newline: boolSuppress trailing newline
verbose: boolPrint verbose diagnostics to stderr
Trait Implementations§
Source§impl Args for RangeArgs
impl Args for RangeArgs
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 RangeArgs
impl FromArgMatches for RangeArgs
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 RangeArgs
impl RefUnwindSafe for RangeArgs
impl Send for RangeArgs
impl Sync for RangeArgs
impl Unpin for RangeArgs
impl UnsafeUnpin for RangeArgs
impl UnwindSafe for RangeArgs
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