#[non_exhaustive]pub struct ScoreChange {
pub a: Option<f64>,
pub b: Option<f64>,
pub abs: Option<f64>,
pub rel_pct: Option<f64>,
pub evidence: Sides<Evidence>,
}Expand description
One score on both sides and how it moved.
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.a: Option<f64>The score in a, or None when a did not assess it.
b: Option<f64>The score in b, or None when b did not assess it.
abs: Option<f64>b - a in score points, when both sides have a score.
rel_pct: Option<f64>b - a as a percentage of a, when both have a score and a is not
zero.
evidence: Sides<Evidence>The evidence behind each side’s score: the scan’s coverage, and whether the score was computed from a retained sample of the rows.
Trait Implementations§
Source§impl Clone for ScoreChange
impl Clone for ScoreChange
Source§impl Debug for ScoreChange
impl Debug for ScoreChange
Source§impl PartialEq for ScoreChange
impl PartialEq for ScoreChange
Source§impl Serialize for ScoreChange
impl Serialize for ScoreChange
impl StructuralPartialEq for ScoreChange
Auto Trait Implementations§
impl Freeze for ScoreChange
impl RefUnwindSafe for ScoreChange
impl Send for ScoreChange
impl Sync for ScoreChange
impl Unpin for ScoreChange
impl UnsafeUnpin for ScoreChange
impl UnwindSafe for ScoreChange
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