Skip to main content

TimeCommands

Enum TimeCommands 

Source
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

§start_date: Option<String>

Filter by start date (ISO 8601 or Unix ms)

§end_date: Option<String>

Filter by end date (ISO 8601 or Unix ms)

§assignee: Option<String>

Filter by assignee user ID

§task: Option<String>

Filter by task ID

§

Get

Get a time entry by ID

Fields

§id: String

Time entry ID

§

Current

Get the currently running timer

§

Create

Create a time entry

Fields

§start: String

Start time (Unix ms)

§duration: String

Duration in milliseconds

§task: Option<String>

Task ID

§description: Option<String>

Description

§billable: bool

Mark as billable

§

Update

Update a time entry

Fields

§id: String

Time entry ID

§start: Option<String>

New start time (Unix ms)

§end: Option<String>

New end time (Unix ms)

§description: Option<String>

New description

§billable: Option<bool>

Mark as billable

§

Delete

Delete a time entry

Fields

§id: String

Time entry ID

§

Start

Start a timer

Fields

§task: Option<String>

Task ID to associate with the timer

§description: Option<String>

Description

§billable: bool

Mark as billable

§

Stop

Stop the currently running timer

§

Tags

List time entry tags for workspace

§

AddTags

Add tags to a time entry

Fields

§entry_id: String

Time entry ID

§tags: Vec<String>

Tag name(s) to add

§

RemoveTags

Remove tags from a time entry

Fields

§entry_id: String

Time entry ID

§tags: Vec<String>

Tag name(s) to remove

§

RenameTag

Rename a time entry tag

Fields

§name: String

Current tag name

§new_name: String

New tag name

§

History

Get history for a time entry

Fields

§id: String

Time entry ID

Trait Implementations§

Source§

impl FromArgMatches for TimeCommands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for TimeCommands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more