pub struct TimeEditArgs {
pub minutes: Option<i64>,
pub date: Option<String>,
pub clear_date: bool,
pub note: Option<String>,
pub clear_note: bool,
pub author: Option<String>,
pub reason: Option<String>,
}Expand description
The fields an entry correction can name (T020).
A patch, not a replacement: a flag that is absent leaves its field alone, which is why
removal is spelled --clear-date/--clear-note rather than an empty value. The reason
is required — by the service, which refuses a missing one by name — and is what the
History event keeps once the prior value is replaced.
Fields§
§minutes: Option<i64>Replacement duration, in whole minutes
date: Option<String>Replacement calendar date, YYYY-MM-DD
clear_date: boolRemove the entry’s date
note: Option<String>Replacement note
clear_note: boolRemove the entry’s note
Replacement author identity
reason: Option<String>Why the entry is being corrected; recorded in History, and required
Trait Implementations§
Source§impl Args for TimeEditArgs
impl Args for TimeEditArgs
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 Clone for TimeEditArgs
impl Clone for TimeEditArgs
Source§impl Debug for TimeEditArgs
impl Debug for TimeEditArgs
Source§impl FromArgMatches for TimeEditArgs
impl FromArgMatches for TimeEditArgs
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 TimeEditArgs
impl RefUnwindSafe for TimeEditArgs
impl Send for TimeEditArgs
impl Sync for TimeEditArgs
impl Unpin for TimeEditArgs
impl UnsafeUnpin for TimeEditArgs
impl UnwindSafe for TimeEditArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more