pub enum TimeCommands {
Show 13 variants
List {
start_date: Option<String>,
end_date: Option<String>,
assignee: Option<String>,
task: Option<String>,
},
Get {
id: String,
},
Current,
Create {
start: String,
duration: String,
task: Option<String>,
description: Option<String>,
billable: bool,
},
Update {
id: String,
start: Option<String>,
end: Option<String>,
description: Option<String>,
billable: Option<bool>,
},
Delete {
id: String,
},
Start {
task: Option<String>,
description: Option<String>,
billable: bool,
},
Stop,
Tags,
AddTags {
entry_id: String,
tags: Vec<String>,
},
RemoveTags {
entry_id: String,
tags: Vec<String>,
},
RenameTag {
name: String,
new_name: String,
},
History {
id: String,
},
}Variants§
List
List time entries
Fields
Get
Get a time entry by ID
Current
Get the currently running timer
Create
Create a time entry
Fields
Update
Update a time entry
Fields
Delete
Delete a time entry
Start
Start a timer
Fields
Stop
Stop the currently running timer
Tags
List time entry tags for workspace
AddTags
Add tags to a time entry
RemoveTags
Remove tags from a time entry
RenameTag
Rename a time entry tag
History
Get history for a time entry
Trait Implementations§
Source§impl FromArgMatches for TimeCommands
impl FromArgMatches for TimeCommands
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 TimeCommands
impl Subcommand for TimeCommands
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 TimeCommands
impl RefUnwindSafe for TimeCommands
impl Send for TimeCommands
impl Sync for TimeCommands
impl Unpin for TimeCommands
impl UnsafeUnpin for TimeCommands
impl UnwindSafe for TimeCommands
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