#[non_exhaustive]pub enum TimelinessClockRule {
Fixed,
Rolling,
}Expand description
How a rule about change reads the timeliness clocks of the two reports (#1024).
The timeliness score counts dates later than a reference date and dates older than a maximum age before it, so the same data scores differently against another date. Every report records its clock, and the policy states which difference between two clocks still measures the same thing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Fixed
Both reports must record the same reference date, time zone and
maximum age. The default, and what a pipeline that passes a fixed
reference_date to every run wants.
Rolling
Each report measures against its own run date: when both read a rolling clock, in the same time zone and with the same maximum age, their reference dates may differ and the scores are compared as measured. A fixed clock on either side still needs the same date on both.
Trait Implementations§
Source§impl Clone for TimelinessClockRule
impl Clone for TimelinessClockRule
impl Copy for TimelinessClockRule
Source§impl Debug for TimelinessClockRule
impl Debug for TimelinessClockRule
Source§impl Default for TimelinessClockRule
impl Default for TimelinessClockRule
Source§impl Display for TimelinessClockRule
impl Display for TimelinessClockRule
impl Eq for TimelinessClockRule
Source§impl FromStr for TimelinessClockRule
impl FromStr for TimelinessClockRule
Source§impl PartialEq for TimelinessClockRule
impl PartialEq for TimelinessClockRule
Source§impl Serialize for TimelinessClockRule
impl Serialize for TimelinessClockRule
impl StructuralPartialEq for TimelinessClockRule
Auto Trait Implementations§
impl Forget for TimelinessClockRule
impl Freeze for TimelinessClockRule
impl Move for TimelinessClockRule
impl RefUnwindSafe for TimelinessClockRule
impl Send for TimelinessClockRule
impl Sync for TimelinessClockRule
impl Unpin for TimelinessClockRule
impl UnsafeUnpin for TimelinessClockRule
impl UnwindSafe for TimelinessClockRule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.