Struct coreledger_backend::types::AccountId
pub struct AccountId {
pub principal: Principal,
pub unique_asset_id: UniqueAssetId,
}Expand description
Represents principal’s account.
Is de-/serialized as 41-bytes-long unsigned big integer value, e.g.:
0x3076F15C46373E18FF6D69E3B022DFF1E622C93D47350E35D629544402F94E2AD9DD5CBBC041430001103_519_800_807_175_032_716_591_528_572_968_691_787_708_233_486_304_528_146_031_558_486_991_492_388_405_314_731_732_668_113_944_577
Fields§
§principal: PrincipalHolder of the units.
unique_asset_id: UniqueAssetIdUnique Id of the asset.
Trait Implementations§
§impl<'de> Deserialize<'de> for AccountId
impl<'de> Deserialize<'de> for AccountId
§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 AccountId
impl Ord for AccountId
§impl PartialOrd for AccountId
impl PartialOrd for AccountId
§fn partial_cmp(&self, other: &AccountId) -> Option<Ordering>
fn partial_cmp(&self, other: &AccountId) -> 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 AccountId
impl Storable for AccountId
§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 AccountId
impl StructuralPartialEq for AccountId
Auto Trait Implementations§
impl Freeze for AccountId
impl RefUnwindSafe for AccountId
impl Send for AccountId
impl Sync for AccountId
impl Unpin for AccountId
impl UnwindSafe for AccountId
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