[][src]Struct libra_json_rpc_client::AccountAddress

pub struct AccountAddress(_);

A struct that represents an account address.

Implementations

impl AccountAddress[src]

pub const fn new(address: [u8; 16]) -> AccountAddress[src]

pub const LENGTH: usize[src]

The number of bytes in an address.

pub const ZERO: AccountAddress[src]

Hex address: 0x0

pub fn random() -> AccountAddress[src]

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

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

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

pub fn to_u8(self) -> [u8; 16][src]

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

pub fn from_identity_public_key(
    identity_public_key: PublicKey
) -> AccountAddress
[src]

Trait Implementations

impl Arbitrary for AccountAddress[src]

type Parameters = <[u8; 16] as Arbitrary>::Parameters

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

type Strategy = Map<(<[u8; 16] as Arbitrary>::Strategy,), fn(([u8; 16],)) -> AccountAddress>

The type of [Strategy] used to generate values of type Self. Read more

impl AsRef<[u8]> 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<'de> Deserialize<'de> for AccountAddress[src]

impl Display for AccountAddress[src]

impl Eq for AccountAddress[src]

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

impl From<AccountAddress> for BytesView[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; 16]> for AccountAddress[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(bytes: &[u8; 16]) -> Result<AccountAddress, Error>[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, Error>[src]

Tries to convert the provided byte array into Address.

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, Error>[src]

Tries to convert the provided byte buffer into Address.

impl UpperHex for AccountAddress[src]

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

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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>,