pub struct WindowTest {
pub days: u32,
pub recent_median: Option<f64>,
pub samples: usize,
pub deviates: bool,
}Expand description
One comparison window of one day class (spec 3.2 §7.10).
Fields§
§days: u32The window’s length in days, ending on the day under test.
recent_median: Option<f64>The median of the class’s values in the window; None when it holds none.
samples: usizeHow many values the window held.
deviates: boolWhether the window’s median is further from the baseline than the threshold.
Trait Implementations§
Source§impl Clone for WindowTest
impl Clone for WindowTest
impl Copy for WindowTest
Source§impl Debug for WindowTest
impl Debug for WindowTest
Source§impl<'de> Deserialize<'de> for WindowTest
impl<'de> Deserialize<'de> for WindowTest
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 WindowTest
impl PartialEq for WindowTest
Source§impl Serialize for WindowTest
impl Serialize for WindowTest
impl StructuralPartialEq for WindowTest
Auto Trait Implementations§
impl Forget for WindowTest
impl Freeze for WindowTest
impl Move for WindowTest
impl RefUnwindSafe for WindowTest
impl Send for WindowTest
impl Sync for WindowTest
impl Unpin for WindowTest
impl UnsafeUnpin for WindowTest
impl UnwindSafe for WindowTest
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