pub struct AccountIdentifier(AccountIdentifier);
Expand description
An account identifier for the different kind of accounts (single or multi).
Tuple Fields§
§0: AccountIdentifier
Implementations§
source§impl AccountIdentifier
impl AccountIdentifier
pub fn into_address( self, discrimination: Discrimination, prefix: &str ) -> Address
fn from_address(addr: Address) -> Result<Self, ParseAccountIdentifierError>
Trait Implementations§
source§impl AsRef<AccountIdentifier> for AccountIdentifier
impl AsRef<AccountIdentifier> for AccountIdentifier
source§impl Clone for AccountIdentifier
impl Clone for AccountIdentifier
source§fn clone(&self) -> AccountIdentifier
fn clone(&self) -> AccountIdentifier
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 AccountIdentifier
impl Debug for AccountIdentifier
source§impl<'de> Deserialize<'de> for AccountIdentifier
impl<'de> Deserialize<'de> for AccountIdentifier
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 Display for AccountIdentifier
impl Display for AccountIdentifier
source§impl From<AccountIdentifier> for AccountIdentifier
impl From<AccountIdentifier> for AccountIdentifier
source§fn from(v: AccountIdentifier) -> Self
fn from(v: AccountIdentifier) -> Self
Converts to this type from the input type.
source§impl From<AccountIdentifier> for AccountIdentifier
impl From<AccountIdentifier> for AccountIdentifier
source§impl From<UnspecifiedAccountIdentifier> for AccountIdentifier
impl From<UnspecifiedAccountIdentifier> for AccountIdentifier
source§impl FromStr for AccountIdentifier
impl FromStr for AccountIdentifier
source§impl Hash for AccountIdentifier
impl Hash for AccountIdentifier
source§impl PartialEq<AccountIdentifier> for AccountIdentifier
impl PartialEq<AccountIdentifier> for AccountIdentifier
source§fn eq(&self, other: &AccountIdentifier) -> bool
fn eq(&self, other: &AccountIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccountIdentifier
impl Serialize for AccountIdentifier
impl Eq for AccountIdentifier
impl StructuralEq for AccountIdentifier
impl StructuralPartialEq for AccountIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for AccountIdentifier
impl Send for AccountIdentifier
impl Sync for AccountIdentifier
impl Unpin for AccountIdentifier
impl UnwindSafe for AccountIdentifier
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