pub struct LiveContestSnapshot {
pub contest: SlateId,
pub games: Vec<Game>,
pub stats: WeekStats,
pub game_states: HashMap<String, LiveGameState>,
pub identity: Arc<LiveIdentityIndex>,
pub identity_outcomes: BTreeMap<String, IdentityMatch>,
pub latest_error: Option<LiveError>,
pub revision: u64,
}Fields§
§contest: SlateId§games: Vec<Game>§stats: WeekStats§game_states: HashMap<String, LiveGameState>§identity: Arc<LiveIdentityIndex>§identity_outcomes: BTreeMap<String, IdentityMatch>§latest_error: Option<LiveError>§revision: u64Implementations§
Source§impl LiveContestSnapshot
impl LiveContestSnapshot
pub fn game(&self, game_id: &str) -> Option<&LiveGameState>
pub fn scored_games(&self) -> Vec<Game>
pub fn game_for_team(&self, team: &TeamAbbr) -> Option<&LiveGameState>
pub fn has_active_game(&self) -> bool
pub fn is_delayed(&self, now: OffsetDateTime) -> bool
Trait Implementations§
Source§impl Clone for LiveContestSnapshot
impl Clone for LiveContestSnapshot
Auto Trait Implementations§
impl Freeze for LiveContestSnapshot
impl RefUnwindSafe for LiveContestSnapshot
impl Send for LiveContestSnapshot
impl Sync for LiveContestSnapshot
impl Unpin for LiveContestSnapshot
impl UnsafeUnpin for LiveContestSnapshot
impl UnwindSafe for LiveContestSnapshot
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
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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