pub enum TaskCmd {
List {
date: Option<DateKeyword>,
project_id: Option<String>,
parent: Option<String>,
start_from: Option<String>,
start_to: Option<String>,
max_count: Option<u32>,
offset: Option<u32>,
include_removed: bool,
include_archived: bool,
},
Get {
id: String,
},
Create {
title: String,
note: Option<String>,
priority: Option<Priority>,
project_id: Option<String>,
parent: Option<String>,
group: Option<String>,
deadline: Option<String>,
start: Option<String>,
tags: Option<Vec<String>>,
},
Done {
id: String,
},
Cancel {
id: String,
},
Reopen {
id: String,
},
Update {
id: String,
title: Option<String>,
note: Option<String>,
priority: Option<Priority>,
checked: Option<CheckedStatus>,
project_id: Option<String>,
parent: Option<String>,
group: Option<String>,
deadline: Option<String>,
start: Option<String>,
tags: Option<Vec<String>>,
},
Delete {
id: String,
},
}Variants§
List
Fields
§
date: Option<DateKeyword>Get
Create
Fields
Done
Cancel
Reopen
Update
Delete
Trait Implementations§
Source§impl FromArgMatches for TaskCmd
impl FromArgMatches for TaskCmd
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for TaskCmd
impl Subcommand for TaskCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for TaskCmd
impl RefUnwindSafe for TaskCmd
impl Send for TaskCmd
impl Sync for TaskCmd
impl Unpin for TaskCmd
impl UnsafeUnpin for TaskCmd
impl UnwindSafe for TaskCmd
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