pub struct ElectionWindow {
pub start: String,
pub end: String,
pub best: String,
pub score: f64,
pub verdict: &'static str,
pub factors: Vec<ElectionFactor>,
}Expand description
A run of consecutive assessed moments scoring at least the minimum.
Fields§
§start: StringFirst moment of the run, ISO 8601 UTC.
end: StringLast moment of the run, ISO 8601 UTC.
best: StringThe best moment of the run (the earliest, on a tie), ISO 8601 UTC.
score: f64Score of the best moment.
verdict: &'static strVerdict of the best moment.
factors: Vec<ElectionFactor>The factors of the best moment.
Trait Implementations§
Source§impl Clone for ElectionWindow
impl Clone for ElectionWindow
Source§impl Debug for ElectionWindow
impl Debug for ElectionWindow
Source§impl PartialEq for ElectionWindow
impl PartialEq for ElectionWindow
Source§impl Serialize for ElectionWindow
impl Serialize for ElectionWindow
impl StructuralPartialEq for ElectionWindow
Auto Trait Implementations§
impl Freeze for ElectionWindow
impl RefUnwindSafe for ElectionWindow
impl Send for ElectionWindow
impl Sync for ElectionWindow
impl Unpin for ElectionWindow
impl UnsafeUnpin for ElectionWindow
impl UnwindSafe for ElectionWindow
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