Struct coreledger_backend::types::AssetId
pub struct AssetId(/* private fields */);
Expand description
Represents locally unique (in the scope of a ledger) asset identifier.
Is de-/serialized as 10-bytes-long unsigned big integer value, e.g.:
0xF94E2AD9DD5CBBC04143
1_177_311_188_014_700_899_090_755
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for AssetId
impl<'de> Deserialize<'de> for AssetId
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Ord for AssetId
impl Ord for AssetId
§impl PartialOrd for AssetId
impl PartialOrd for AssetId
§fn partial_cmp(&self, other: &AssetId) -> Option<Ordering>
fn partial_cmp(&self, other: &AssetId) -> 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 Storable for AssetId
impl Storable for AssetId
§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for AssetId
impl StructuralPartialEq for AssetId
Auto Trait Implementations§
impl Freeze for AssetId
impl RefUnwindSafe for AssetId
impl Send for AssetId
impl Sync for AssetId
impl Unpin for AssetId
impl UnwindSafe for AssetId
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