pub enum ConfidenceLevel {
    Low,
    Medium,
    High,
}Expand description
Confidence level categorization based on confidence value
This enum categorizes the confidence score into three levels to help users quickly understand how reliable a reputation score is.
§Thresholds
Low: confidence < 0.2 (limited data)Medium: 0.2 ≤ confidence < 0.7 (moderate data)High: confidence ≥ 0.7 (substantial data)
Variants§
Low
Low confidence - limited interaction data
Medium
Medium confidence - moderate interaction data
High
High confidence - substantial interaction data
Implementations§
Source§impl ConfidenceLevel
 
impl ConfidenceLevel
Sourcepub fn from_confidence(confidence: f64) -> ConfidenceLevel
 
pub fn from_confidence(confidence: f64) -> ConfidenceLevel
Determine confidence level from a confidence value
Trait Implementations§
Source§impl Clone for ConfidenceLevel
 
impl Clone for ConfidenceLevel
Source§fn clone(&self) -> ConfidenceLevel
 
fn clone(&self) -> ConfidenceLevel
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 ConfidenceLevel
 
impl Debug for ConfidenceLevel
Source§impl<'de> Deserialize<'de> for ConfidenceLevel
 
impl<'de> Deserialize<'de> for ConfidenceLevel
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<ConfidenceLevel, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<ConfidenceLevel, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConfidenceLevel
 
impl Display for ConfidenceLevel
Source§impl PartialEq for ConfidenceLevel
 
impl PartialEq for ConfidenceLevel
Source§impl Serialize for ConfidenceLevel
 
impl Serialize for ConfidenceLevel
Source§fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ConfidenceLevel
impl Eq for ConfidenceLevel
impl StructuralPartialEq for ConfidenceLevel
Auto Trait Implementations§
impl Freeze for ConfidenceLevel
impl RefUnwindSafe for ConfidenceLevel
impl Send for ConfidenceLevel
impl Sync for ConfidenceLevel
impl Unpin for ConfidenceLevel
impl UnwindSafe for ConfidenceLevel
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<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more