Struct concordium_base::id::types::AccountAddress
source · pub struct AccountAddress(pub [u8; 32]);
Expand description
Address of an account, as raw bytes.
Tuple Fields§
§0: [u8; 32]
Implementations§
source§impl AccountAddress
impl AccountAddress
sourcepub fn is_alias(&self, other: &AccountAddress) -> bool
pub fn is_alias(&self, other: &AccountAddress) -> bool
Check whether self
is an alias of other
. Two addresses are aliases
if they identify the same account. This is defined to be when the
addresses agree on the first 29 bytes.
Trait Implementations§
source§impl AsRef<[u8]> for AccountAddress
impl AsRef<[u8]> for AccountAddress
source§impl AsRef<AccountAddress> for AccountAddressEq
impl AsRef<AccountAddress> for AccountAddressEq
source§fn as_ref(&self) -> &AccountAddress
fn as_ref(&self) -> &AccountAddress
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<AccountAddressEq> for AccountAddress
impl AsRef<AccountAddressEq> for AccountAddress
source§fn as_ref(&self) -> &AccountAddressEq
fn as_ref(&self) -> &AccountAddressEq
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for AccountAddress
impl Clone for AccountAddress
source§fn clone(&self) -> AccountAddress
fn clone(&self) -> AccountAddress
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 AccountAddress
impl Debug for AccountAddress
source§impl Deserial for AccountAddress
impl Deserial for AccountAddress
source§fn deserial<R>(source: &mut R) -> Result<AccountAddress, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<AccountAddress, ParseError>where R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
source§impl Deserial for AccountAddress
impl Deserial for AccountAddress
fn deserial<R: ReadBytesExt>(source: &mut R) -> ParseResult<Self>
source§impl<'de> Deserialize<'de> for AccountAddress
impl<'de> Deserialize<'de> for AccountAddress
source§fn deserialize<D>(
des: D
) -> Result<AccountAddress, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( des: D ) -> Result<AccountAddress, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for AccountAddress
impl Display for AccountAddress
source§impl From<AccountAddress> for AccountAddressEq
impl From<AccountAddress> for AccountAddressEq
source§fn from(address: AccountAddress) -> Self
fn from(address: AccountAddress) -> Self
Converts to this type from the input type.
source§impl From<AccountAddress> for Address
impl From<AccountAddress> for Address
source§fn from(address: AccountAddress) -> Address
fn from(address: AccountAddress) -> Address
Converts to this type from the input type.
source§impl From<AccountAddressEq> for AccountAddress
impl From<AccountAddressEq> for AccountAddress
source§fn from(aae: AccountAddressEq) -> Self
fn from(aae: AccountAddressEq) -> Self
Converts to this type from the input type.
source§impl FromStr for AccountAddress
impl FromStr for AccountAddress
Parse from string assuming base58check encoding.
§type Err = AccountAddressParseError
type Err = AccountAddressParseError
The associated error which can be returned from parsing.
source§fn from_str(v: &str) -> Result<AccountAddress, <AccountAddress as FromStr>::Err>
fn from_str(v: &str) -> Result<AccountAddress, <AccountAddress as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for AccountAddress
impl Hash for AccountAddress
source§impl Ord for AccountAddress
impl Ord for AccountAddress
source§fn cmp(&self, other: &AccountAddress) -> Ordering
fn cmp(&self, other: &AccountAddress) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AccountAddress> for AccountAddress
impl PartialEq<AccountAddress> for AccountAddress
source§fn eq(&self, other: &AccountAddress) -> bool
fn eq(&self, other: &AccountAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AccountAddress> for AccountAddress
impl PartialOrd<AccountAddress> for AccountAddress
source§fn partial_cmp(&self, other: &AccountAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &AccountAddress) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SchemaType for AccountAddress
impl SchemaType for AccountAddress
source§impl Serial for AccountAddress
impl Serial for AccountAddress
source§impl Serialize for AccountAddress
impl Serialize for AccountAddress
source§fn serialize<S>(
&self,
ser: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, ser: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for AccountAddress
impl Eq for AccountAddress
impl StructuralEq for AccountAddress
impl StructuralPartialEq for AccountAddress
Auto Trait Implementations§
impl RefUnwindSafe for AccountAddress
impl Send for AccountAddress
impl Sync for AccountAddress
impl Unpin for AccountAddress
impl UnwindSafe for AccountAddress
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)