pub struct EvaluationCriterion {
pub criterion_id: String,
pub redacted_summary: String,
pub weight: Option<String>,
}Expand description
One expected-outcome criterion.
Fields§
§criterion_id: StringStable criterion id owned by the host or eval fixture.
redacted_summary: StringBounded summary of the condition to check.
weight: Option<String>Optional weight encoded as a string so the SDK stays metric-neutral.
Implementations§
Trait Implementations§
Source§impl Clone for EvaluationCriterion
impl Clone for EvaluationCriterion
Source§fn clone(&self) -> EvaluationCriterion
fn clone(&self) -> EvaluationCriterion
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 moreSource§impl Debug for EvaluationCriterion
impl Debug for EvaluationCriterion
Source§impl<'de> Deserialize<'de> for EvaluationCriterion
impl<'de> Deserialize<'de> for EvaluationCriterion
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 PartialEq for EvaluationCriterion
impl PartialEq for EvaluationCriterion
Source§fn eq(&self, other: &EvaluationCriterion) -> bool
fn eq(&self, other: &EvaluationCriterion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EvaluationCriterion
impl Serialize for EvaluationCriterion
impl Eq for EvaluationCriterion
impl StructuralPartialEq for EvaluationCriterion
Auto Trait Implementations§
impl Freeze for EvaluationCriterion
impl RefUnwindSafe for EvaluationCriterion
impl Send for EvaluationCriterion
impl Sync for EvaluationCriterion
impl Unpin for EvaluationCriterion
impl UnsafeUnpin for EvaluationCriterion
impl UnwindSafe for EvaluationCriterion
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