pub struct EntryRow {
pub id: EntryId,
pub rank: Option<u32>,
pub name: String,
pub owner_name: String,
pub logo: Option<String>,
pub points: Option<f64>,
pub coverage: Coverage,
pub winner: bool,
pub mine: bool,
pub minutes_remaining: Option<f64>,
}Expand description
A rendered contest entry row. Pre-results, rank and points are None
and winner is false on every row.
Fields§
§id: EntryIdThe /entries/{id} link target.
rank: Option<u32>§name: String§owner_name: String§logo: Option<String>§points: Option<f64>§coverage: Coverage§winner: bool§mine: boolThe viewer’s own entry, highlighted in every contest state; pinned first and linked while the slate is open.
minutes_remaining: Option<f64>The entry’s remaining regulation game-clock minutes, Some only on the
Provisional path; the official and pre-kickoff ranks keep it None.
Implementations§
Source§impl EntryRow
impl EntryRow
Sourcepub fn monogram(&self) -> String
pub fn monogram(&self) -> String
Up to two initials from the fantasy team name, for the logo fallback.
Sourcepub fn points_str(&self) -> Option<String>
pub fn points_str(&self) -> Option<String>
The points as "1,247.50", or None pre-results.
Sourcepub fn minutes_str(&self) -> Option<String>
pub fn minutes_str(&self) -> Option<String>
The whole minutes remaining, or None when the row has no live meters.
Sourcepub fn minutes_band(&self) -> &'static str
pub fn minutes_band(&self) -> &'static str
Band of the fill fraction: ≥50% ok, 10%–50% warn, <10% low.
None minutes render as full (unreachable — the template guards on Some).
Sourcepub fn minutes_pct(&self) -> u8
pub fn minutes_pct(&self) -> u8
Width of the fill bar, 0–100, rounded.
Auto Trait Implementations§
impl Freeze for EntryRow
impl RefUnwindSafe for EntryRow
impl Send for EntryRow
impl Sync for EntryRow
impl Unpin for EntryRow
impl UnsafeUnpin for EntryRow
impl UnwindSafe for EntryRow
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
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