pub struct MetricViolation {
pub evaluator_id: String,
pub evaluator_version: Option<String>,
pub class: MetricClass,
pub reason: ViolationReason,
pub decision: MetricDecision,
pub observed_rate: f64,
pub baseline_rate: Option<f64>,
pub delta: f64,
pub p_value: Option<f64>,
pub detail: String,
}Fields§
§evaluator_id: String§evaluator_version: Option<String>§class: MetricClass§reason: ViolationReason§decision: MetricDecision§observed_rate: f64§baseline_rate: Option<f64>§delta: f64§p_value: Option<f64>§detail: StringTrait Implementations§
Source§impl Clone for MetricViolation
impl Clone for MetricViolation
Source§fn clone(&self) -> MetricViolation
fn clone(&self) -> MetricViolation
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 MetricViolation
impl Debug for MetricViolation
Source§impl<'de> Deserialize<'de> for MetricViolation
impl<'de> Deserialize<'de> for MetricViolation
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 MetricViolation
impl RefUnwindSafe for MetricViolation
impl Send for MetricViolation
impl Sync for MetricViolation
impl Unpin for MetricViolation
impl UnsafeUnpin for MetricViolation
impl UnwindSafe for MetricViolation
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