pub struct Evaluation {
pub name: String,
pub value: ScoreValue,
pub comment: Option<String>,
pub metadata: Option<Value>,
pub data_type: Option<String>,
}Expand description
An evaluation result produced by an Evaluator.
Fields§
§name: StringName of the evaluation metric (e.g. “accuracy”, “relevance”).
value: ScoreValueThe score value — numeric, categorical, or boolean.
comment: Option<String>Optional human-readable comment explaining the evaluation.
metadata: Option<Value>Optional structured metadata attached to the evaluation.
data_type: Option<String>Optional data type hint (e.g. “NUMERIC”, “BOOLEAN”, “CATEGORICAL”).
Trait Implementations§
Source§impl Clone for Evaluation
impl Clone for Evaluation
Source§fn clone(&self) -> Evaluation
fn clone(&self) -> Evaluation
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 Evaluation
impl Debug for Evaluation
Source§impl<'de> Deserialize<'de> for Evaluation
impl<'de> Deserialize<'de> for Evaluation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Evaluation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Evaluation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Evaluation
impl Serialize for Evaluation
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
Auto Trait Implementations§
impl Freeze for Evaluation
impl RefUnwindSafe for Evaluation
impl Send for Evaluation
impl Sync for Evaluation
impl Unpin for Evaluation
impl UnsafeUnpin for Evaluation
impl UnwindSafe for Evaluation
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