pub struct FantasyTeamId(pub i64);Expand description
A fantasy team’s id as an opaque token: typed so it cannot be confused with other ids, open because the type distinction is the protection.
Tuple Fields§
§0: i64Trait Implementations§
Source§impl Clone for FantasyTeamId
impl Clone for FantasyTeamId
impl Copy for FantasyTeamId
Source§impl Debug for FantasyTeamId
impl Debug for FantasyTeamId
Source§impl<'r, DB: Database> Decode<'r, DB> for FantasyTeamIdwhere
i64: Decode<'r, DB>,
impl<'r, DB: Database> Decode<'r, DB> for FantasyTeamIdwhere
i64: Decode<'r, DB>,
Source§impl<'q, DB: Database> Encode<'q, DB> for FantasyTeamIdwhere
i64: Encode<'q, DB>,
impl<'q, DB: Database> Encode<'q, DB> for FantasyTeamIdwhere
i64: Encode<'q, DB>,
impl Eq for FantasyTeamId
Source§impl Hash for FantasyTeamId
impl Hash for FantasyTeamId
Source§impl Ord for FantasyTeamId
impl Ord for FantasyTeamId
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 FantasyTeamId
impl PartialEq for FantasyTeamId
Source§impl PartialOrd for FantasyTeamId
impl PartialOrd for FantasyTeamId
impl StructuralPartialEq for FantasyTeamId
Auto Trait Implementations§
impl Freeze for FantasyTeamId
impl RefUnwindSafe for FantasyTeamId
impl Send for FantasyTeamId
impl Sync for FantasyTeamId
impl Unpin for FantasyTeamId
impl UnsafeUnpin for FantasyTeamId
impl UnwindSafe for FantasyTeamId
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<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<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<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