pub struct SubAccountIdentifier {
pub address: String,
pub metadata: Option<Value>,
}Expand description
SubAccountIdentifier : An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.
Fields§
§address: StringThe SubAccount address may be a cryptographic value or some other identifier (ex: bonded) that uniquely specifies a SubAccount.
metadata: Option<Value>If the SubAccount address is not sufficient to uniquely specify a SubAccount, any other identifying information can be stored here. It is important to note that two SubAccounts with identical addresses but differing metadata will not be considered equal by clients.
Implementations§
Source§impl SubAccountIdentifier
impl SubAccountIdentifier
Sourcepub fn new(address: String) -> SubAccountIdentifier
pub fn new(address: String) -> SubAccountIdentifier
An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.
Trait Implementations§
Source§impl Clone for SubAccountIdentifier
impl Clone for SubAccountIdentifier
Source§fn clone(&self) -> SubAccountIdentifier
fn clone(&self) -> SubAccountIdentifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more