pub struct LiveIdentityIndex { /* private fields */ }Implementations§
Source§impl LiveIdentityIndex
impl LiveIdentityIndex
pub fn empty() -> Self
pub fn from_sources(players: &[Player], rosters: &[WeeklyRosterEntry]) -> Self
pub async fn build( nfl: &NflData, season_week: SeasonWeek, teams: &[TeamAbbr], ) -> Result<Self, NflDataError>
pub fn resolve( &self, espn_id: Option<&EspnPlayerId>, name: Option<&str>, team: Option<&TeamAbbr>, position: Option<&str>, ) -> IdentityMatch
pub fn record(&self, gsis_id: &NflPlayerId) -> Option<&IdentityRecord>
pub fn contains_gsis(&self, gsis_id: &NflPlayerId) -> bool
pub fn scheduled_team(&self, gsis_id: &NflPlayerId) -> Option<&TeamAbbr>
pub fn position(&self, gsis_id: &NflPlayerId) -> Option<&str>
Trait Implementations§
Source§impl Clone for LiveIdentityIndex
impl Clone for LiveIdentityIndex
Source§impl Debug for LiveIdentityIndex
impl Debug for LiveIdentityIndex
Auto Trait Implementations§
impl Freeze for LiveIdentityIndex
impl RefUnwindSafe for LiveIdentityIndex
impl Send for LiveIdentityIndex
impl Sync for LiveIdentityIndex
impl Unpin for LiveIdentityIndex
impl UnsafeUnpin for LiveIdentityIndex
impl UnwindSafe for LiveIdentityIndex
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