pub struct PlaysToken<Player: Model, Owner: Model, Players> { /* private fields */ }Expand description
A playing-fact token branded by player, role owner, and accepted-player enum.
Implementations§
Source§impl<Player: Model, Owner: Model, Players> PlaysToken<Player, Owner, Players>
impl<Player: Model, Owner: Model, Players> PlaysToken<Player, Owner, Players>
Sourcepub const fn new(
plays_id_json: &'static str,
metadata_json: &'static str,
) -> Self
pub const fn new( plays_id_json: &'static str, metadata_json: &'static str, ) -> Self
Construct a token from canonical playing identity and metadata JSON.
Sourcepub const fn plays_id_json(self) -> &'static str
pub const fn plays_id_json(self) -> &'static str
Return the token’s canonical playing identity JSON.
Sourcepub const fn metadata_json(self) -> &'static str
pub const fn metadata_json(self) -> &'static str
Return the token’s canonical metadata JSON.
Trait Implementations§
Source§impl<Player: Clone + Model, Owner: Clone + Model, Players: Clone> Clone for PlaysToken<Player, Owner, Players>
impl<Player: Clone + Model, Owner: Clone + Model, Players: Clone> Clone for PlaysToken<Player, Owner, Players>
Source§fn clone(&self) -> PlaysToken<Player, Owner, Players>
fn clone(&self) -> PlaysToken<Player, Owner, Players>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Player: Copy + Model, Owner: Copy + Model, Players: Copy> Copy for PlaysToken<Player, Owner, Players>
Source§impl<Player: Debug + Model, Owner: Debug + Model, Players: Debug> Debug for PlaysToken<Player, Owner, Players>
impl<Player: Debug + Model, Owner: Debug + Model, Players: Debug> Debug for PlaysToken<Player, Owner, Players>
impl<Player: Eq + Model, Owner: Eq + Model, Players: Eq> Eq for PlaysToken<Player, Owner, Players>
Source§impl<Player: PartialEq + Model, Owner: PartialEq + Model, Players: PartialEq> PartialEq for PlaysToken<Player, Owner, Players>
impl<Player: PartialEq + Model, Owner: PartialEq + Model, Players: PartialEq> PartialEq for PlaysToken<Player, Owner, Players>
impl<Player: PartialEq + Model, Owner: PartialEq + Model, Players: PartialEq> StructuralPartialEq for PlaysToken<Player, Owner, Players>
Auto Trait Implementations§
impl<Player, Owner, Players> Freeze for PlaysToken<Player, Owner, Players>
impl<Player, Owner, Players> RefUnwindSafe for PlaysToken<Player, Owner, Players>
impl<Player, Owner, Players> Send for PlaysToken<Player, Owner, Players>
impl<Player, Owner, Players> Sync for PlaysToken<Player, Owner, Players>
impl<Player, Owner, Players> Unpin for PlaysToken<Player, Owner, Players>
impl<Player, Owner, Players> UnsafeUnpin for PlaysToken<Player, Owner, Players>
impl<Player, Owner, Players> UnwindSafe for PlaysToken<Player, Owner, Players>
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request