Struct ledger_mob_core::TokenId
pub struct TokenId(/* private fields */);
Expand description
Token Id, used to identify different assets on on the blockchain.
Implementations§
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
§impl ConditionallySelectable for TokenId
impl ConditionallySelectable for TokenId
§impl ConstantTimeEq for TokenId
impl ConstantTimeEq for TokenId
§impl<'de> Deserialize<'de> for TokenId
impl<'de> Deserialize<'de> for TokenId
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TokenId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TokenId, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Digestible for TokenId
impl Digestible for TokenId
§fn append_to_transcript<DT>(&self, context: &'static [u8], transcript: &mut DT)where
DT: DigestTranscript,
fn append_to_transcript<DT>(&self, context: &'static [u8], transcript: &mut DT)where DT: DigestTranscript,
Add the data from self to the transcript
Context should be a string-literal
§fn digest32<DT>(&self, context: &'static [u8]) -> [u8; 32]where
DT: DigestTranscript,
fn digest32<DT>(&self, context: &'static [u8]) -> [u8; 32]where DT: DigestTranscript,
Simply get a 32-byte hash using a one-off digest transcript. Read more
§fn append_to_transcript_allow_omit<DT>(
&self,
context: &'static [u8],
transcript: &mut DT
)where
DT: DigestTranscript,
fn append_to_transcript_allow_omit<DT>( &self, context: &'static [u8], transcript: &mut DT )where DT: DigestTranscript,
To support schema evolution, in some contexts the generated code for a
Digestible implementation of a compound type should append its
children to the transcript, but allow them to skip themselves if
they are empty. For members of a struct, this is allowed, because
they don’t have a fixed set of members but for a variant it isn’t
allowed, because the value cannot be omitted. Read more
§impl Ord for TokenId
impl Ord for TokenId
§impl PartialOrd<TokenId> for TokenId
impl PartialOrd<TokenId> for TokenId
§fn partial_cmp(&self, other: &TokenId) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenId) -> 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 more§impl Serialize for TokenId
impl Serialize for TokenId
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TokenId
impl Eq for TokenId
impl StructuralEq for TokenId
impl StructuralPartialEq for TokenId
Auto Trait Implementations§
impl RefUnwindSafe for TokenId
impl Send for TokenId
impl Sync for TokenId
impl Unpin for TokenId
impl UnwindSafe for TokenId
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