Enum initiative_core::time::command::TimeCommand
source · pub enum TimeCommand {
Add {
interval: Interval,
},
Now,
Sub {
interval: Interval,
},
}
Variants§
Trait Implementations§
source§impl Autocomplete for TimeCommand
impl Autocomplete for TimeCommand
fn autocomplete<'life0, 'life1, 'async_trait>(
input: &'life0 str,
_app_meta: &'life1 AppMeta,
) -> Pin<Box<dyn Future<Output = Vec<AutocompleteSuggestion>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
source§impl Clone for TimeCommand
impl Clone for TimeCommand
source§fn clone(&self) -> TimeCommand
fn clone(&self) -> TimeCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ContextAwareParse for TimeCommand
impl ContextAwareParse for TimeCommand
fn parse_input<'life0, 'life1, 'async_trait>(
input: &'life0 str,
_app_meta: &'life1 AppMeta,
) -> Pin<Box<dyn Future<Output = CommandMatches<Self>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
source§impl Debug for TimeCommand
impl Debug for TimeCommand
source§impl Display for TimeCommand
impl Display for TimeCommand
source§impl From<TimeCommand> for CommandType
impl From<TimeCommand> for CommandType
source§fn from(c: TimeCommand) -> CommandType
fn from(c: TimeCommand) -> CommandType
Converts to this type from the input type.
source§impl PartialEq for TimeCommand
impl PartialEq for TimeCommand
source§fn eq(&self, other: &TimeCommand) -> bool
fn eq(&self, other: &TimeCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Runnable for TimeCommand
impl Runnable for TimeCommand
impl Eq for TimeCommand
impl StructuralPartialEq for TimeCommand
Auto Trait Implementations§
impl Freeze for TimeCommand
impl RefUnwindSafe for TimeCommand
impl Send for TimeCommand
impl Sync for TimeCommand
impl Unpin for TimeCommand
impl UnwindSafe for TimeCommand
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)