pub struct StatusCommand {
pub format: Option<String>,
pub fallback: Option<String>,
}Fields§
§format: Option<String>A format string describing the output of the command.
fallback: Option<String>The message that gets printed to the console if no time is currently tracked.
Trait Implementations§
Source§impl Args for StatusCommand
impl Args for StatusCommand
Source§impl Clap for StatusCommand
impl Clap for StatusCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
Source§impl FromArgMatches for StatusCommand
impl FromArgMatches for StatusCommand
Source§fn from_arg_matches(arg_matches: &ArgMatches) -> Option<Self>
fn from_arg_matches(arg_matches: &ArgMatches) -> Option<Self>
Source§fn update_from_arg_matches(&mut self, arg_matches: &ArgMatches)
fn update_from_arg_matches(&mut self, arg_matches: &ArgMatches)
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for StatusCommand
impl RefUnwindSafe for StatusCommand
impl Send for StatusCommand
impl Sync for StatusCommand
impl Unpin for StatusCommand
impl UnwindSafe for StatusCommand
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