Struct chainhook_types::AccountIdentifier
source · pub struct AccountIdentifier {
pub address: String,
pub sub_account: Option<SubAccountIdentifier>,
}Expand description
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: StringThe address may be a cryptographic public key (or some encoding of it) or a provided username.
sub_account: Option<SubAccountIdentifier>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<'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 Hash for AccountIdentifier
impl Hash for AccountIdentifier
source§impl PartialEq for AccountIdentifier
impl PartialEq 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