pub enum AccountRef {
Id(AccountId),
Name(String),
}Expand description
Reference to an account using an address or a named label.
Variants§
Trait Implementations§
Source§impl Clone for AccountRef
impl Clone for AccountRef
Source§fn clone(&self) -> AccountRef
fn clone(&self) -> AccountRef
Returns a duplicate 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 AccountRef
impl Debug for AccountRef
Source§impl Display for AccountRef
impl Display for AccountRef
Source§impl From<&PublicIdentity> for AccountRef
impl From<&PublicIdentity> for AccountRef
Source§fn from(value: &PublicIdentity) -> Self
fn from(value: &PublicIdentity) -> Self
Converts to this type from the input type.
Source§impl From<PublicIdentity> for AccountRef
impl From<PublicIdentity> for AccountRef
Source§fn from(value: PublicIdentity) -> Self
fn from(value: PublicIdentity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccountRef
impl RefUnwindSafe for AccountRef
impl Send for AccountRef
impl Sync for AccountRef
impl Unpin for AccountRef
impl UnwindSafe for AccountRef
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