Struct chainhook_types::SubAccountIdentifier
source · pub struct SubAccountIdentifier {
pub address: SubAccount,
}Expand description
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: SubAccountThe SubAccount address may be a cryptographic value or some other identifier (ex: bonded) that uniquely specifies a SubAccount.
Trait Implementations§
source§impl Clone for SubAccountIdentifier
impl Clone for SubAccountIdentifier
source§fn clone(&self) -> SubAccountIdentifier
fn clone(&self) -> SubAccountIdentifier
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 SubAccountIdentifier
impl Debug for SubAccountIdentifier
source§impl<'de> Deserialize<'de> for SubAccountIdentifier
impl<'de> Deserialize<'de> for SubAccountIdentifier
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 Hash for SubAccountIdentifier
impl Hash for SubAccountIdentifier
source§impl PartialEq for SubAccountIdentifier
impl PartialEq for SubAccountIdentifier
source§fn eq(&self, other: &SubAccountIdentifier) -> bool
fn eq(&self, other: &SubAccountIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SubAccountIdentifier
impl Serialize for SubAccountIdentifier
impl Eq for SubAccountIdentifier
impl StructuralEq for SubAccountIdentifier
impl StructuralPartialEq for SubAccountIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for SubAccountIdentifier
impl Send for SubAccountIdentifier
impl Sync for SubAccountIdentifier
impl Unpin for SubAccountIdentifier
impl UnwindSafe for SubAccountIdentifier
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