#[non_exhaustive]pub enum GoalStatus {
Pending,
Active,
Complete,
Failed,
}Expand description
Status of a goal in its lifecycle.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pending
Goal has been defined but not yet started.
Active
Goal is actively being pursued.
Complete
Goal has been achieved.
Failed
Goal was abandoned or could not be met.
Trait Implementations§
Source§impl Clone for GoalStatus
impl Clone for GoalStatus
Source§fn clone(&self) -> GoalStatus
fn clone(&self) -> GoalStatus
Returns a duplicate 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 GoalStatus
impl Debug for GoalStatus
Source§impl Default for GoalStatus
impl Default for GoalStatus
Source§impl<'de> Deserialize<'de> for GoalStatus
impl<'de> Deserialize<'de> for GoalStatus
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 Display for GoalStatus
impl Display for GoalStatus
Source§impl Hash for GoalStatus
impl Hash for GoalStatus
Source§impl PartialEq for GoalStatus
impl PartialEq for GoalStatus
Source§impl Serialize for GoalStatus
impl Serialize for GoalStatus
impl Copy for GoalStatus
impl Eq for GoalStatus
impl StructuralPartialEq for GoalStatus
Auto Trait Implementations§
impl Freeze for GoalStatus
impl RefUnwindSafe for GoalStatus
impl Send for GoalStatus
impl Sync for GoalStatus
impl Unpin for GoalStatus
impl UnsafeUnpin for GoalStatus
impl UnwindSafe for GoalStatus
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