pub enum GoalStatus {
Inactive,
Active,
Complete,
Failed,
}Expand description
Represents current state of the Goal
Variants§
Implementations§
Source§impl GoalStatus
impl GoalStatus
pub fn is_inactive(&self) -> bool
pub fn is_not_inactive(&self) -> bool
pub fn and_inactive(self, and: Self) -> Self
pub fn or_inactive(self, or: Self) -> Self
pub fn is_active(&self) -> bool
pub fn is_not_active(&self) -> bool
pub fn and_active(self, and: Self) -> Self
pub fn or_active(self, or: Self) -> Self
pub fn is_complete(&self) -> bool
pub fn is_not_complete(&self) -> bool
pub fn and_complete(self, and: Self) -> Self
pub fn or_complete(self, or: Self) -> Self
pub fn is_failed(&self) -> bool
pub fn is_not_failed(&self) -> bool
pub fn and_failed(self, and: Self) -> Self
pub fn or_failed(self, or: Self) -> Self
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<'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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.