pub enum KnowledgeWeight {
Rule,
Strong,
Moderate,
Weak,
Info,
}Expand description
The weight (authoritativeness) of a knowledge node.
Variants§
Rule
Must follow. Surfaced by validate_approach in relevant_rules.
Strong
Strongly recommended (confidence > 0.85).
Moderate
Moderately recommended (confidence 0.50–0.85).
Weak
Weakly recommended (confidence 0.20–0.50).
Info
Informational only (confidence < 0.20).
Implementations§
Trait Implementations§
Source§impl Clone for KnowledgeWeight
impl Clone for KnowledgeWeight
Source§fn clone(&self) -> KnowledgeWeight
fn clone(&self) -> KnowledgeWeight
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 KnowledgeWeight
Source§impl Debug for KnowledgeWeight
impl Debug for KnowledgeWeight
Source§impl<'de> Deserialize<'de> for KnowledgeWeight
impl<'de> Deserialize<'de> for KnowledgeWeight
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 KnowledgeWeight
impl Display for KnowledgeWeight
impl Eq for KnowledgeWeight
Source§impl FromStr for KnowledgeWeight
impl FromStr for KnowledgeWeight
Source§impl Hash for KnowledgeWeight
impl Hash for KnowledgeWeight
Source§impl PartialEq for KnowledgeWeight
impl PartialEq for KnowledgeWeight
Source§fn eq(&self, other: &KnowledgeWeight) -> bool
fn eq(&self, other: &KnowledgeWeight) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KnowledgeWeight
impl Serialize for KnowledgeWeight
impl StructuralPartialEq for KnowledgeWeight
Auto Trait Implementations§
impl Freeze for KnowledgeWeight
impl RefUnwindSafe for KnowledgeWeight
impl Send for KnowledgeWeight
impl Sync for KnowledgeWeight
impl Unpin for KnowledgeWeight
impl UnsafeUnpin for KnowledgeWeight
impl UnwindSafe for KnowledgeWeight
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