pub struct DraftEntry {
pub id: DraftEntryId,
pub slate_id: SlateId,
pub fantasy_team_id: FantasyTeamId,
pub qb: Option<NflPlayerId>,
pub rb1: Option<NflPlayerId>,
pub rb2: Option<NflPlayerId>,
pub wr1: Option<NflPlayerId>,
pub wr2: Option<NflPlayerId>,
pub wr3: Option<NflPlayerId>,
pub te: Option<NflPlayerId>,
pub flex: Option<NflPlayerId>,
pub def: Option<TeamAbbr>,
}Expand description
A draft lineup: one optional pick per roster slot. Nulls are empty slots.
Fields§
§id: DraftEntryId§slate_id: SlateId§fantasy_team_id: FantasyTeamId§qb: Option<NflPlayerId>§rb1: Option<NflPlayerId>§rb2: Option<NflPlayerId>§wr1: Option<NflPlayerId>§wr2: Option<NflPlayerId>§wr3: Option<NflPlayerId>§te: Option<NflPlayerId>§flex: Option<NflPlayerId>§def: Option<TeamAbbr>Implementations§
Source§impl DraftEntry
impl DraftEntry
Sourcepub fn get(&self, slot: RosterSlot) -> Option<PlayerOrDefenseId>
pub fn get(&self, slot: RosterSlot) -> Option<PlayerOrDefenseId>
The value in a slot, None for an empty one.
Sourcepub fn set(&mut self, slot: RosterSlot, value: PlayerOrDefenseId)
pub fn set(&mut self, slot: RosterSlot, value: PlayerOrDefenseId)
Put a value in a slot, overwriting whatever was there.
Sourcepub fn clear(&mut self, slot: RosterSlot)
pub fn clear(&mut self, slot: RosterSlot)
Empty a slot, discarding whatever pick it held.
Trait Implementations§
Source§impl Clone for DraftEntry
impl Clone for DraftEntry
Source§impl Debug for DraftEntry
impl Debug for DraftEntry
Source§impl PartialEq for DraftEntry
impl PartialEq for DraftEntry
impl StructuralPartialEq for DraftEntry
Auto Trait Implementations§
impl Freeze for DraftEntry
impl RefUnwindSafe for DraftEntry
impl Send for DraftEntry
impl Sync for DraftEntry
impl Unpin for DraftEntry
impl UnsafeUnpin for DraftEntry
impl UnwindSafe for DraftEntry
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