pub struct TallyView {Show 14 fields
pub met_quorum: bool,
pub decided: bool,
pub provisional: bool,
pub winner: String,
pub judges: usize,
pub present: usize,
pub quorum: usize,
pub uncontested: Option<String>,
pub first_choice: BTreeMap<String, usize>,
pub initial: &'static str,
pub unanimous_final: bool,
pub changed_votes: usize,
pub tie_break: Option<String>,
pub rate_limited: Vec<String>,
}Expand description
The count.
Fields§
§met_quorum: boolpresent >= quorum, or none was required.
decided: boolAlways met_quorum; named so the client has one field to gate on.
provisional: boolThe winner is only provisional.
winner: StringWinning label.
judges: usizeConfigured panel size.
present: usizeJudges who contributed.
quorum: usizeJudges required.
uncontested: Option<String>Why no panel sat.
first_choice: BTreeMap<String, usize>First choices per label.
initial: &'static strnone, one, unanimous or split.
unanimous_final: boolFinal votes agreed.
changed_votes: usizeJudges who moved.
tie_break: Option<String>How a tie was broken.
rate_limited: Vec<String>Seats lost to a rate limit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TallyView
impl RefUnwindSafe for TallyView
impl Send for TallyView
impl Sync for TallyView
impl Unpin for TallyView
impl UnsafeUnpin for TallyView
impl UnwindSafe for TallyView
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more