Struct ic_ledger_types::Subaccount
source · pub struct Subaccount(pub [u8; 32]);
Expand description
Subaccount is an arbitrary 32-byte byte array. Ledger uses subaccounts to compute account address, which enables one principal to control multiple ledger accounts.
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
source§impl CandidType for Subaccount
impl CandidType for Subaccount
source§impl Clone for Subaccount
impl Clone for Subaccount
source§fn clone(&self) -> Subaccount
fn clone(&self) -> Subaccount
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 Subaccount
impl Debug for Subaccount
source§impl<'de> Deserialize<'de> for Subaccount
impl<'de> Deserialize<'de> for Subaccount
source§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
source§impl From<Principal> for Subaccount
impl From<Principal> for Subaccount
source§impl Hash for Subaccount
impl Hash for Subaccount
source§impl Ord for Subaccount
impl Ord for Subaccount
source§fn cmp(&self, other: &Subaccount) -> Ordering
fn cmp(&self, other: &Subaccount) -> 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 for Subaccount
impl PartialEq for Subaccount
source§fn eq(&self, other: &Subaccount) -> bool
fn eq(&self, other: &Subaccount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Subaccount
impl PartialOrd for Subaccount
source§fn partial_cmp(&self, other: &Subaccount) -> Option<Ordering>
fn partial_cmp(&self, other: &Subaccount) -> 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 moresource§impl Serialize for Subaccount
impl Serialize for Subaccount
impl Copy for Subaccount
impl Eq for Subaccount
impl StructuralPartialEq for Subaccount
Auto Trait Implementations§
impl Freeze for Subaccount
impl RefUnwindSafe for Subaccount
impl Send for Subaccount
impl Sync for Subaccount
impl Unpin for Subaccount
impl UnwindSafe for Subaccount
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)