pub struct EvalMetric {
pub name: String,
pub slug: Option<String>,
pub score: f64,
pub threshold: Option<f64>,
pub direction: MetricDirection,
pub weight: Option<f64>,
}Expand description
Evaluation metric emitted by change validation (eval packs, smoke tests, etc.).
Fields§
§name: String§slug: Option<String>§score: f64§threshold: Option<f64>§direction: MetricDirection§weight: Option<f64>Trait Implementations§
Source§impl Clone for EvalMetric
impl Clone for EvalMetric
Source§fn clone(&self) -> EvalMetric
fn clone(&self) -> EvalMetric
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 EvalMetric
impl Debug for EvalMetric
Source§impl Default for EvalMetric
impl Default for EvalMetric
Source§fn default() -> EvalMetric
fn default() -> EvalMetric
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvalMetric
impl<'de> Deserialize<'de> for EvalMetric
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
Auto Trait Implementations§
impl Freeze for EvalMetric
impl RefUnwindSafe for EvalMetric
impl Send for EvalMetric
impl Sync for EvalMetric
impl Unpin for EvalMetric
impl UnwindSafe for EvalMetric
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