pub struct SalariedPlayer {
pub player: Option<Player>,
pub game: Game,
pub salary: u32,
pub position: DfsPosition,
pub team: TeamAbbr,
}Expand description
A player’s or defense’s FanDuel salary entry for a game.
player is None for defense/special teams (DST) entries and Some for all other
positions.
Fields§
§player: Option<Player>Player associated with the entry, or None for DST.
game: GameGame and season week associated with the entry.
salary: u32Salary in FanDuel’s export units (typically whole dollars).
position: DfsPositionFanDuel DFS roster position; see DfsPosition for supported positions.
team: TeamAbbrTeam represented by this entry, as a TeamAbbr.
Trait Implementations§
Source§impl Clone for SalariedPlayer
impl Clone for SalariedPlayer
Source§impl Debug for SalariedPlayer
impl Debug for SalariedPlayer
Source§impl PartialEq for SalariedPlayer
impl PartialEq for SalariedPlayer
impl StructuralPartialEq for SalariedPlayer
Auto Trait Implementations§
impl Freeze for SalariedPlayer
impl RefUnwindSafe for SalariedPlayer
impl Send for SalariedPlayer
impl Sync for SalariedPlayer
impl Unpin for SalariedPlayer
impl UnsafeUnpin for SalariedPlayer
impl UnwindSafe for SalariedPlayer
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<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