pub struct SlotRow {
pub slot: &'static str,
pub name: String,
pub coverage: Coverage,
pub phase: Option<LiveGamePhase>,
pub period: Option<String>,
pub clock: Option<String>,
pub stale: bool,
/* private fields */
}Expand description
One lineup row: a slot label, who filled it, and how they scored.
Fields§
§slot: &'static str§name: String§coverage: Coverage§phase: Option<LiveGamePhase>§period: Option<String>§clock: Option<String>§stale: boolImplementations§
Source§impl SlotRow
impl SlotRow
pub fn name(&self) -> &str
pub fn dom_id(&self) -> String
pub fn injury(&self) -> Option<InjuryChip>
Sourcepub fn abbreviated_name(&self) -> String
pub fn abbreviated_name(&self) -> String
The compact row name; DST names return unchanged.
Sourcepub fn is_long_name(&self) -> bool
pub fn is_long_name(&self) -> bool
Whether the name exceeds the content heuristic for a row.
Sourcepub fn avatar_url(&self) -> String
pub fn avatar_url(&self) -> String
The row’s image source.
Sourcepub fn avatar_is_logo(&self) -> bool
pub fn avatar_is_logo(&self) -> bool
A team logo sits contained and padded; a photo fills the cell.
pub fn game(&self) -> Option<&GameLine>
Sourcepub fn matchup_str(&self) -> String
pub fn matchup_str(&self) -> String
"KC vs BUF", "KC", or "—" — the fallback when no slate game
features the team.
Sourcepub fn stat_line_str(&self) -> String
pub fn stat_line_str(&self) -> String
The compact fantasy-scoring line.
pub fn points_whole(&self) -> String
pub fn points_dec(&self) -> String
pub fn has_points(&self) -> bool
pub fn score_increased(&self) -> bool
pub fn score_decreased(&self) -> bool
Sourcepub fn score_flash_class(&self) -> &'static str
pub fn score_flash_class(&self) -> &'static str
The flash class a changed score carries on both score spans:
" score-flash-increase", " score-flash-decrease", or "".
Sourcepub fn score_delta(&self) -> String
pub fn score_delta(&self) -> String
The changed-frame delta under the score: "+2.00", "-1.75", or "".
pub fn salary_str(&self) -> String
pub fn ownership_str(&self) -> String
pub fn status(&self) -> &str
pub fn period_clock(&self) -> Option<String>
pub fn has_status(&self) -> bool
Auto Trait Implementations§
impl Freeze for SlotRow
impl RefUnwindSafe for SlotRow
impl Send for SlotRow
impl Sync for SlotRow
impl Unpin for SlotRow
impl UnsafeUnpin for SlotRow
impl UnwindSafe for SlotRow
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