[][src]Struct stellar_base::PublicKey

pub struct PublicKey { /* fields omitted */ }

The public key of the account.

Implementations

impl PublicKey[src]

pub fn from_account_id(account_id: &str) -> Result<PublicKey>[src]

Create from account_id, e.g. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA.

pub fn from_slice(data: &[u8]) -> Result<PublicKey>[src]

Create from raw bytes.

pub fn inner(&self) -> &PublicKey[src]

Return the inner key.

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

pub fn into_muxed_account(self, id: u64) -> MuxedAccount[src]

pub fn to_muxed_account(&self, id: u64) -> MuxedAccount[src]

pub fn to_xdr_uint256(&self) -> Result<Uint256>[src]

pub fn to_xdr_public_key(&self) -> Result<PublicKey>[src]

pub fn to_xdr_account_id(&self) -> Result<AccountId>[src]

pub fn from_xdr_public_key(x: &PublicKey) -> Result<PublicKey>[src]

pub fn from_xdr_account_id(x: &AccountId) -> Result<PublicKey>[src]

pub fn as_bytes(&self) -> &[u8][src]

pub fn to_xdr(&self) -> Result<MuxedAccount>[src]

Trait Implementations

impl Clone for PublicKey[src]

impl Debug for PublicKey[src]

impl Display for PublicKey[src]

impl Eq for PublicKey[src]

impl From<PublicKey> for MuxedAccount[src]

impl FromStr for PublicKey[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<PublicKey> for PublicKey[src]

impl StructuralEq for PublicKey[src]

impl StructuralPartialEq for PublicKey[src]

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.