pub struct AddActionConfig {
pub no_date: bool,
pub no_fixup: bool,
pub urgency: Option<Urgency>,
pub quiet: bool,
pub outputter: Outputter,
}Expand description
Config object for the add action.
Fields§
§no_date: bool§no_fixup: bool§urgency: Option<Urgency>§quiet: bool§outputter: OutputterImplementations§
Source§impl AddActionConfig
impl AddActionConfig
Sourcepub fn add_args(cmd: Command) -> Command
pub fn add_args(cmd: Command) -> Command
Add arguments to a clap Command for the add action’s options.
Sourcepub fn from_argmatches(args: &ArgMatches) -> Self
pub fn from_argmatches(args: &ArgMatches) -> Self
Create an AddActionConfig from an appropriate ArgMatches.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AddActionConfig
impl !RefUnwindSafe for AddActionConfig
impl !Send for AddActionConfig
impl !Sync for AddActionConfig
impl Unpin for AddActionConfig
impl !UnwindSafe for AddActionConfig
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