[][src]Struct solana_libra_types::account_address::AccountAddress

pub struct AccountAddress(_);

A struct that represents an account address. Currently Public Key is used.

Methods

impl AccountAddress[src]

pub fn new(address: [u8; 32]) -> Self[src]

pub fn random() -> Self[src]

pub fn short_str(&self) -> String[src]

pub fn to_vec(&self) -> Vec<u8>[src]

pub fn from_public_key<PublicKey: VerifyingKey>(public_key: &PublicKey) -> Self[src]

pub fn from_hex_literal(literal: &str) -> Result<Self>[src]

Trait Implementations

impl AsRef<[u8]> for AccountAddress[src]

impl CanonicalDeserialize for AccountAddress[src]

impl CanonicalSerialize for AccountAddress[src]

impl Clone for AccountAddress[src]

impl Copy for AccountAddress[src]

impl CryptoHash for AccountAddress[src]

type Hasher = AccountAddressHasher

The associated Hasher type which comes with a unique salt for this type.

impl Debug for AccountAddress[src]

impl Default for AccountAddress[src]

impl<'de> Deserialize<'de> for AccountAddress[src]

impl Display for AccountAddress[src]

impl Eq for AccountAddress[src]

impl<'_> From<&'_ AccountAddress> for Vec<u8>[src]

impl<'_> From<&'_ AccountAddress> for String[src]

impl From<AccountAddress> for Vec<u8>[src]

impl From<AccountAddress> for Bytes[src]

impl FromStr for AccountAddress[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for AccountAddress[src]

impl LowerHex for AccountAddress[src]

impl Ord for AccountAddress[src]

impl PartialEq<AccountAddress> for AccountAddress[src]

impl PartialOrd<AccountAddress> for AccountAddress[src]

impl Serialize for AccountAddress[src]

impl StructuralEq for AccountAddress[src]

impl StructuralPartialEq for AccountAddress[src]

impl<'_> TryFrom<&'_ [u8; 32]> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(bytes: &[u8; 32]) -> Result<AccountAddress>[src]

Tries to convert the provided byte array into Address.

impl<'_> TryFrom<&'_ [u8]> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(bytes: &[u8]) -> Result<AccountAddress>[src]

Tries to convert the provided byte array into Address.

impl TryFrom<AccountAddress> for Bech32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Bech32> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Bytes> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<String> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8>> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(bytes: Vec<u8>) -> Result<AccountAddress>[src]

Tries to convert the provided byte buffer into Address.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'f, T> CheckBase32<Vec<u5>> for T where
    T: AsRef<[u8]>, 
[src]

type Err = Error

Error type if conversion fails

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

impl<T> ToBase32<Vec<u5>> for T where
    T: AsRef<[u8]>, 
[src]

fn to_base32(&self) -> Vec<u5>[src]

Convert base256 to base32, adds padding if necessary

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,