#[non_exhaustive]pub enum KnowledgeState {
Pending,
Active,
Dismissed,
}Expand description
The three persisted states a knowledge slot’s value can be in. Distinct
from ClaimStatus, which is still in use and whose Contradicted variant
is load-bearing in saya-store’s transition rules; this adds the new
vocabulary beside it.
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.
Implementations§
Trait Implementations§
Source§impl Clone for KnowledgeState
impl Clone for KnowledgeState
Source§fn clone(&self) -> KnowledgeState
fn clone(&self) -> KnowledgeState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KnowledgeState
Source§impl Debug for KnowledgeState
impl Debug for KnowledgeState
Source§impl<'de> Deserialize<'de> for KnowledgeState
impl<'de> Deserialize<'de> for KnowledgeState
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
impl Eq for KnowledgeState
Source§impl Hash for KnowledgeState
impl Hash for KnowledgeState
Source§impl PartialEq for KnowledgeState
impl PartialEq for KnowledgeState
Source§impl Serialize for KnowledgeState
impl Serialize for KnowledgeState
impl StructuralPartialEq for KnowledgeState
Auto Trait Implementations§
impl Freeze for KnowledgeState
impl RefUnwindSafe for KnowledgeState
impl Send for KnowledgeState
impl Sync for KnowledgeState
impl Unpin for KnowledgeState
impl UnsafeUnpin for KnowledgeState
impl UnwindSafe for KnowledgeState
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