pub struct EditArgs {Show 13 fields
pub id: usize,
pub text: Option<String>,
pub priority: Option<Priority>,
pub add_tag: Vec<String>,
pub remove_tag: Vec<String>,
pub project: Option<String>,
pub clear_project: bool,
pub due: Option<String>,
pub clear_due: bool,
pub clear_tags: bool,
pub add_dep: Vec<usize>,
pub remove_dep: Vec<usize>,
pub clear_deps: bool,
}Expand description
Arguments for the edit subcommand.
Fields§
§id: usize1-based task ID.
text: Option<String>New task description.
priority: Option<Priority>New priority level.
add_tag: Vec<String>Tags to add (comma-separated or repeat flag).
remove_tag: Vec<String>Tags to remove (comma-separated or repeat flag).
project: Option<String>Assign task to a project.
clear_project: boolRemove task from its current project.
due: Option<String>New due date - accepts natural language or YYYY-MM-DD.
clear_due: boolRemove the due date.
Remove all tags.
add_dep: Vec<usize>Task IDs to add as dependencies.
remove_dep: Vec<usize>Task IDs to remove from dependencies.
clear_deps: boolRemove all dependencies from this task.
Trait Implementations§
Source§impl Args for EditArgs
impl Args for EditArgs
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 EditArgs
impl FromArgMatches for EditArgs
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 EditArgs
impl RefUnwindSafe for EditArgs
impl Send for EditArgs
impl Sync for EditArgs
impl Unpin for EditArgs
impl UnsafeUnpin for EditArgs
impl UnwindSafe for EditArgs
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