pub struct AccountIdentifier {
pub address: String,
pub sub_account: Option<SubAccountIdentifier>,
pub metadata: Option<Value>,
}
Expand description
AccountIdentifier : The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).
Fields§
§address: String
The address may be a cryptographic public key (or some encoding of it) or a provided username.
sub_account: Option<SubAccountIdentifier>
§metadata: Option<Value>
Blockchains that utilize a username model (where the address is not a derivative of a cryptographic public key) should specify the public key(s) owned by the address in metadata.
Implementations§
source§impl AccountIdentifier
impl AccountIdentifier
sourcepub fn new(address: String) -> AccountIdentifier
pub fn new(address: String) -> AccountIdentifier
The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).
Trait Implementations§
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 Default for AccountIdentifier
impl Default for AccountIdentifier
source§fn default() -> AccountIdentifier
fn default() -> AccountIdentifier
Returns the “default value” for a type. Read more
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 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