pub enum ScoreDataType {
Numeric,
Categorical,
Boolean,
}Expand description
The data type of a score.
Variants§
Numeric
A numeric score (e.g. 0.0–1.0).
Categorical
A categorical score (e.g. “good”, “bad”).
Boolean
A boolean score (pass/fail).
Trait Implementations§
Source§impl Clone for ScoreDataType
impl Clone for ScoreDataType
Source§fn clone(&self) -> ScoreDataType
fn clone(&self) -> ScoreDataType
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 ScoreDataType
Source§impl Debug for ScoreDataType
impl Debug for ScoreDataType
Source§impl<'de> Deserialize<'de> for ScoreDataType
impl<'de> Deserialize<'de> for ScoreDataType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScoreDataType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScoreDataType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScoreDataType
Source§impl PartialEq for ScoreDataType
impl PartialEq for ScoreDataType
Source§fn eq(&self, other: &ScoreDataType) -> bool
fn eq(&self, other: &ScoreDataType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScoreDataType
impl Serialize for ScoreDataType
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 StructuralPartialEq for ScoreDataType
Auto Trait Implementations§
impl Freeze for ScoreDataType
impl RefUnwindSafe for ScoreDataType
impl Send for ScoreDataType
impl Sync for ScoreDataType
impl Unpin for ScoreDataType
impl UnsafeUnpin for ScoreDataType
impl UnwindSafe for ScoreDataType
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