pub struct Slate {
pub id: SlateId,
pub season_week: SeasonWeek,
pub name: String,
pub kickoff: Option<OffsetDateTime>,
pub multiday: bool,
}Expand description
A shared, named slate: stored metadata without any games.
Fields§
§id: SlateIdDerived identifier; see SlateId.
season_week: SeasonWeekThe exact NFL week this slate belongs to.
name: StringCanonical name, e.g. Week 1, Thanksgiving, or Wild Card.
kickoff: Option<OffsetDateTime>The slate’s earliest known kickoff in UTC, or None when unknown.
multiday: boolWhether its games span more than one Eastern calendar date, e.g. a Saturday/Sunday postseason weekend.
Implementations§
Source§impl Slate
impl Slate
Sourcepub fn status(&self, now: OffsetDateTime) -> SlateStatus
pub fn status(&self, now: OffsetDateTime) -> SlateStatus
Where the slate sits relative to now, by Eastern calendar dates.
Unknown kickoff means SlateStatus::Upcoming. A known slate is live
from its kickoff through the end of its kickoff date (and the following
date when multiday), then finished.
Trait Implementations§
impl Eq for Slate
Source§impl<'a, R: Row> FromRow<'a, R> for Slatewhere
&'a str: ColumnIndex<R>,
SlateId: Decode<'a, R::Database> + Type<R::Database>,
SeasonWeek: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<OffsetDateTime>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for Slatewhere
&'a str: ColumnIndex<R>,
SlateId: Decode<'a, R::Database> + Type<R::Database>,
SeasonWeek: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<OffsetDateTime>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Source§impl Ord for Slate
impl Ord for Slate
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Slate
impl PartialOrd for Slate
impl StructuralPartialEq for Slate
Auto Trait Implementations§
impl Freeze for Slate
impl RefUnwindSafe for Slate
impl Send for Slate
impl Sync for Slate
impl Unpin for Slate
impl UnsafeUnpin for Slate
impl UnwindSafe for Slate
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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