pub struct TzArgs {
pub input: String,
pub from: Option<String>,
pub to: String,
pub json: bool,
pub no_newline: bool,
pub now: Option<String>,
pub verbose: bool,
}Expand description
Arguments for the tz subcommand.
Fields§
§input: StringInput datetime expression
from: Option<String>Source timezone (auto-detected from system or input if omitted)
to: StringTarget timezone (required, IANA name like “America/Sao_Paulo”)
json: boolOutput as JSON
no_newline: boolSuppress trailing newline
now: Option<String>Override “now” reference (RFC 3339)
verbose: boolPrint verbose diagnostics to stderr
Trait Implementations§
Source§impl Args for TzArgs
impl Args for TzArgs
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 TzArgs
impl FromArgMatches for TzArgs
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 TzArgs
impl RefUnwindSafe for TzArgs
impl Send for TzArgs
impl Sync for TzArgs
impl Unpin for TzArgs
impl UnsafeUnpin for TzArgs
impl UnwindSafe for TzArgs
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