#[non_exhaustive]pub struct BaselineReading {
pub observed: Option<MetricValue>,
pub evidence: Evidence,
pub change: Option<MetricValue>,
pub bounds: Option<CheckBounds>,
}Expand description
What the baseline said about the metric a rule about change reads.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.observed: Option<MetricValue>The baseline’s value, or None when it carries none.
evidence: EvidenceWhether the data behind the baseline’s value covers its whole source.
change: Option<MetricValue>The check’s observed minus the baseline’s, at the report’s
serialized precision: in points, or, for a rule on a relative change
such as max_distinct_drop and the row count rules, in percent of the
baseline’s value, or, for max_null_count_increase, in nulls.
None when either side has no value.
bounds: Option<CheckBounds>Where the baseline’s whole-source score lies, when its score came from a retained sample and the baseline bounds it, and a full-source score drop rule was decided on it. Absent otherwise.
Trait Implementations§
Source§impl Clone for BaselineReading
impl Clone for BaselineReading
impl Copy for BaselineReading
Source§impl Debug for BaselineReading
impl Debug for BaselineReading
Source§impl PartialEq for BaselineReading
impl PartialEq for BaselineReading
Source§impl Serialize for BaselineReading
impl Serialize for BaselineReading
impl StructuralPartialEq for BaselineReading
Auto Trait Implementations§
impl Forget for BaselineReading
impl Freeze for BaselineReading
impl Move for BaselineReading
impl RefUnwindSafe for BaselineReading
impl Send for BaselineReading
impl Sync for BaselineReading
impl Unpin for BaselineReading
impl UnsafeUnpin for BaselineReading
impl UnwindSafe for BaselineReading
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