Enum pace_core::ActivityKind
source · pub enum ActivityKind {
Activity,
Task,
Intermission,
PomodoroWork,
PomodoroIntermission,
}Expand description
The kind of activity a user can track
Variants§
Activity
A generic activity
Task
A task
Intermission
A break
PomodoroWork
A pomodoro work session
PomodoroIntermission
A pomodoro break
Implementations§
source§impl ActivityKind
impl ActivityKind
sourcepub fn is_activity(&self) -> bool
pub fn is_activity(&self) -> bool
Returns true if the activity kind is Activity.
sourcepub fn is_intermission(&self) -> bool
pub fn is_intermission(&self) -> bool
Returns true if the activity kind is Intermission.
sourcepub fn is_pomodoro_work(&self) -> bool
pub fn is_pomodoro_work(&self) -> bool
Returns true if the activity kind is PomodoroWork.
sourcepub fn is_pomodoro_intermission(&self) -> bool
pub fn is_pomodoro_intermission(&self) -> bool
Returns true if the activity kind is PomodoroIntermission.
Trait Implementations§
source§impl Clone for ActivityKind
impl Clone for ActivityKind
source§fn clone(&self) -> ActivityKind
fn clone(&self) -> ActivityKind
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 Debug for ActivityKind
impl Debug for ActivityKind
source§impl Default for ActivityKind
impl Default for ActivityKind
source§fn default() -> ActivityKind
fn default() -> ActivityKind
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ActivityKind
impl<'de> Deserialize<'de> for ActivityKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ActivityKind
impl Hash for ActivityKind
source§impl PartialEq for ActivityKind
impl PartialEq for ActivityKind
source§fn eq(&self, other: &ActivityKind) -> bool
fn eq(&self, other: &ActivityKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ActivityKind
impl Serialize for ActivityKind
impl Copy for ActivityKind
impl Eq for ActivityKind
impl StructuralPartialEq for ActivityKind
Auto Trait Implementations§
impl RefUnwindSafe for ActivityKind
impl Send for ActivityKind
impl Sync for ActivityKind
impl Unpin for ActivityKind
impl UnwindSafe for ActivityKind
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.