Struct coreledger_backend::types::AmendmentId
pub struct AmendmentId {
pub count: u32,
pub unique_asset_id: UniqueAssetId,
}
Expand description
Represents unique identifier of an amendment.
Is de-/serialized as 16-bytes-long unsigned big integer value, e.g.:
0x00000001F94E2AD9DD5CBBC041430001
156_384_428_531_995_775_716_355_670_017
Fields§
§count: u32
Ordinal number of an amendment for an asset.
unique_asset_id: UniqueAssetId
Unique asset id.
Trait Implementations§
§impl CandidType for AmendmentId
impl CandidType for AmendmentId
§impl Clone for AmendmentId
impl Clone for AmendmentId
§fn clone(&self) -> AmendmentId
fn clone(&self) -> AmendmentId
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 more§impl Debug for AmendmentId
impl Debug for AmendmentId
§impl<'de> Deserialize<'de> for AmendmentId
impl<'de> Deserialize<'de> for AmendmentId
§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 From<&AmendmentId> for BigUint
impl From<&AmendmentId> for BigUint
§fn from(value: &AmendmentId) -> Self
fn from(value: &AmendmentId) -> Self
Converts to this type from the input type.
§impl From<&AmendmentId> for Nat
impl From<&AmendmentId> for Nat
§fn from(value: &AmendmentId) -> Self
fn from(value: &AmendmentId) -> Self
Converts to this type from the input type.
§impl From<AmendmentId> for BigUint
impl From<AmendmentId> for BigUint
§fn from(value: AmendmentId) -> Self
fn from(value: AmendmentId) -> Self
Converts to this type from the input type.
§impl From<AmendmentId> for Nat
impl From<AmendmentId> for Nat
§fn from(value: AmendmentId) -> Self
fn from(value: AmendmentId) -> Self
Converts to this type from the input type.
§impl From<BigUint> for AmendmentId
impl From<BigUint> for AmendmentId
§impl From<Nat> for AmendmentId
impl From<Nat> for AmendmentId
§impl Ord for AmendmentId
impl Ord for AmendmentId
§impl PartialEq for AmendmentId
impl PartialEq for AmendmentId
§fn eq(&self, other: &AmendmentId) -> bool
fn eq(&self, other: &AmendmentId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for AmendmentId
impl PartialOrd for AmendmentId
§fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> 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 AmendmentId
impl Serialize for AmendmentId
§impl Storable for AmendmentId
impl Storable for AmendmentId
§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 AmendmentId
impl StructuralPartialEq for AmendmentId
Auto Trait Implementations§
impl Freeze for AmendmentId
impl RefUnwindSafe for AmendmentId
impl Send for AmendmentId
impl Sync for AmendmentId
impl Unpin for AmendmentId
impl UnwindSafe for AmendmentId
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