pub struct Subaccount(/* private fields */);Expand description
A canonical 32-byte ICRC account subaccount.
Implementations§
Source§impl Subaccount
impl Subaccount
Sourcepub const MIN: Subaccount
pub const MIN: Subaccount
The lexicographically smallest subaccount.
Sourcepub const MAX: Subaccount
pub const MAX: Subaccount
The lexicographically largest subaccount.
Sourcepub const fn from_array(array: [u8; 32]) -> Subaccount
pub const fn from_array(array: [u8; 32]) -> Subaccount
Construct from the exact fixed-width byte array.
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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Subaccount
Source§impl Debug for Subaccount
impl Debug for Subaccount
Source§impl Default for Subaccount
impl Default for Subaccount
Source§fn default() -> Subaccount
fn default() -> Subaccount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Subaccount
impl<'de> Deserialize<'de> for Subaccount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Subaccount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Subaccount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Subaccount
impl Display for Subaccount
impl Eq for Subaccount
Source§impl From<Principal> for Subaccount
impl From<Principal> for Subaccount
Source§fn from(principal: Principal) -> Subaccount
fn from(principal: Principal) -> Subaccount
Converts to this type from the input type.
Source§impl Hash for Subaccount
impl Hash for Subaccount
Source§impl NormalizeAuto for Subaccount
impl NormalizeAuto for Subaccount
fn normalize_self(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl NormalizeCustom for Subaccount
impl NormalizeCustom for Subaccount
fn normalize_custom(&mut self, _ctx: &mut dyn VisitorContext)
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 (const: unstable) · 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§impl PartialOrd for Subaccount
impl PartialOrd for Subaccount
Source§impl Serialize for Subaccount
impl Serialize for Subaccount
Source§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 StructuralPartialEq for Subaccount
Source§impl ValidateAuto for Subaccount
impl ValidateAuto for Subaccount
fn validate_self(&self, _ctx: &mut dyn VisitorContext)
Source§impl ValidateCustom for Subaccount
impl ValidateCustom for Subaccount
fn validate_custom(&self, _ctx: &mut dyn VisitorContext)
Source§impl Visitable for Subaccount
impl Visitable for Subaccount
Source§fn type_identity(&self) -> &'static str
fn type_identity(&self) -> &'static str
Return the concrete Rust application-value type used for callback
diagnostics.
fn drive(&self, _: &mut dyn VisitorCore)
fn drive_mut(&mut self, _: &mut dyn VisitorMutCore)
Auto Trait Implementations§
impl Freeze for Subaccount
impl RefUnwindSafe for Subaccount
impl Send for Subaccount
impl Sync for Subaccount
impl Unpin for Subaccount
impl UnsafeUnpin 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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CustomError for T
impl<T> CustomError for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Normalize for Twhere
T: NormalizeAuto + NormalizeCustom,
Source§impl<T> NormalizeAndValidate for Twhere
T: Visitable,
impl<T> NormalizeAndValidate for Twhere
T: Visitable,
Source§fn normalize_and_validate(self) -> Result<Self, VisitorError>
fn normalize_and_validate(self) -> Result<Self, VisitorError>
Normalize and then validate this application-owned value. Read more