pub struct NflPlayerId(pub String);Expand description
A typed NFL-player reference. Wraps nfl-data’s String gsis ids at the
boundary; its eventual home is nfl-data next to TeamAbbr.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl AsRef<str> for NflPlayerId
impl AsRef<str> for NflPlayerId
Source§impl Clone for NflPlayerId
impl Clone for NflPlayerId
Source§impl Debug for NflPlayerId
impl Debug for NflPlayerId
Source§impl<'r, DB: Database> Decode<'r, DB> for NflPlayerIdwhere
String: Decode<'r, DB>,
impl<'r, DB: Database> Decode<'r, DB> for NflPlayerIdwhere
String: Decode<'r, DB>,
Source§impl<'q, DB: Database> Encode<'q, DB> for NflPlayerIdwhere
String: Encode<'q, DB>,
impl<'q, DB: Database> Encode<'q, DB> for NflPlayerIdwhere
String: Encode<'q, DB>,
impl Eq for NflPlayerId
Source§impl Hash for NflPlayerId
impl Hash for NflPlayerId
Source§impl Ord for NflPlayerId
impl Ord for NflPlayerId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NflPlayerId
impl PartialEq for NflPlayerId
Source§impl PartialOrd for NflPlayerId
impl PartialOrd for NflPlayerId
impl StructuralPartialEq for NflPlayerId
Auto Trait Implementations§
impl Freeze for NflPlayerId
impl RefUnwindSafe for NflPlayerId
impl Send for NflPlayerId
impl Sync for NflPlayerId
impl Unpin for NflPlayerId
impl UnsafeUnpin for NflPlayerId
impl UnwindSafe for NflPlayerId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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