Struct chain_impl_mockchain::tokens::identifier::TokenIdentifier
source · pub struct TokenIdentifier {
pub policy_hash: PolicyHash,
pub token_name: TokenName,
}
Expand description
The unique identifier of a token.
It is represented either as two hex strings separated by a dot or just a hex string when the name is empty.
Fields§
§policy_hash: PolicyHash
§token_name: TokenName
Implementations§
Trait Implementations§
source§impl Arbitrary for TokenIdentifier
impl Arbitrary for TokenIdentifier
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<TokenIdentifier>
type Strategy = BoxedStrategy<TokenIdentifier>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Arbitrary for TokenIdentifier
impl Arbitrary for TokenIdentifier
source§impl Clone for TokenIdentifier
impl Clone for TokenIdentifier
source§fn clone(&self) -> TokenIdentifier
fn clone(&self) -> TokenIdentifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TokenIdentifier
impl Debug for TokenIdentifier
source§impl Deserialize for TokenIdentifier
impl Deserialize for TokenIdentifier
fn deserialize<R: Read>(codec: &mut Codec<R>) -> Result<Self, ReadError>
fn deserialize_validate<R>(codec: &mut Codec<R>) -> Result<(), ReadError>where R: Read,
source§impl Display for TokenIdentifier
impl Display for TokenIdentifier
source§impl FromStr for TokenIdentifier
impl FromStr for TokenIdentifier
source§impl Hash for TokenIdentifier
impl Hash for TokenIdentifier
source§impl Ord for TokenIdentifier
impl Ord for TokenIdentifier
source§fn cmp(&self, other: &TokenIdentifier) -> Ordering
fn cmp(&self, other: &TokenIdentifier) -> Ordering
1.21.0 · 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
source§impl PartialEq<TokenIdentifier> for TokenIdentifier
impl PartialEq<TokenIdentifier> for TokenIdentifier
source§fn eq(&self, other: &TokenIdentifier) -> bool
fn eq(&self, other: &TokenIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TokenIdentifier> for TokenIdentifier
impl PartialOrd<TokenIdentifier> for TokenIdentifier
source§fn partial_cmp(&self, other: &TokenIdentifier) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenIdentifier) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TokenIdentifier
impl StructuralEq for TokenIdentifier
impl StructuralPartialEq for TokenIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for TokenIdentifier
impl Send for TokenIdentifier
impl Sync for TokenIdentifier
impl Unpin for TokenIdentifier
impl UnwindSafe for TokenIdentifier
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