pub struct LiveGameState {Show 17 fields
pub game: Game,
pub tank01_game_id: Option<String>,
pub phase: LiveGamePhase,
pub period: Option<String>,
pub clock: Option<String>,
pub home_score: Option<i32>,
pub away_score: Option<i32>,
pub status_observed: bool,
pub players: HashMap<NflPlayerId, PlayerWeekStats>,
pub player_section_present: bool,
pub player_identity_incomplete: bool,
pub player_observed_at: Option<OffsetDateTime>,
pub player_stale: bool,
pub defenses: HashMap<TeamAbbr, LiveTeamStats>,
pub defense_observed_at: HashMap<TeamAbbr, OffsetDateTime>,
pub defense_stale: HashMap<TeamAbbr, bool>,
pub last_error: Option<LiveError>,
}Fields§
§game: Game§tank01_game_id: Option<String>§phase: LiveGamePhase§period: Option<String>§clock: Option<String>§home_score: Option<i32>§away_score: Option<i32>§status_observed: bool§players: HashMap<NflPlayerId, PlayerWeekStats>§player_section_present: bool§player_identity_incomplete: bool§player_observed_at: Option<OffsetDateTime>§player_stale: bool§defenses: HashMap<TeamAbbr, LiveTeamStats>§defense_observed_at: HashMap<TeamAbbr, OffsetDateTime>§defense_stale: HashMap<TeamAbbr, bool>§last_error: Option<LiveError>Implementations§
Source§impl LiveGameState
impl LiveGameState
pub fn team_is_scheduled(&self, team: &TeamAbbr) -> bool
pub fn defense_is_stale(&self, team: &TeamAbbr) -> bool
Trait Implementations§
Source§impl Clone for LiveGameState
impl Clone for LiveGameState
Source§impl Debug for LiveGameState
impl Debug for LiveGameState
Source§impl PartialEq for LiveGameState
impl PartialEq for LiveGameState
impl StructuralPartialEq for LiveGameState
Auto Trait Implementations§
impl Freeze for LiveGameState
impl RefUnwindSafe for LiveGameState
impl Send for LiveGameState
impl Sync for LiveGameState
impl Unpin for LiveGameState
impl UnsafeUnpin for LiveGameState
impl UnwindSafe for LiveGameState
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