[][src]Struct cli::AccountData

pub struct AccountData {
    pub address: AccountAddress,
    pub authentication_key: Option<Vec<u8>>,
    pub key_pair: Option<KeyPair<Ed25519PrivateKey, Ed25519PublicKey>>,
    pub sequence_number: u64,
    pub status: AccountStatus,

Struct used to store data for each created account. We track the sequence number so we can create new transactions easily


address: AccountAddress

Address of the account.

authentication_key: Option<Vec<u8>>

Authentication key of the account.

key_pair: Option<KeyPair<Ed25519PrivateKey, Ed25519PublicKey>>

(private_key, public_key) pair if the account is not managed by wallet.

sequence_number: u64

Latest sequence number maintained by client, it can be different from validator.

status: AccountStatus

Whether the account is initialized on chain, cached local only, or status unknown.


impl AccountData[src]

pub fn keypair_as_string(&self) -> Option<(String, String)>[src]

Serialize account keypair if exists.

Trait Implementations

impl Clone for AccountData[src]

impl Debug for AccountData[src]

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

impl PartialEq<AccountData> for AccountData[src]

impl Serialize for AccountData[src]

impl StructuralPartialEq for AccountData[src]

Auto Trait Implementations

impl RefUnwindSafe for AccountData

impl Send for AccountData

impl Sync for AccountData

impl Unpin for AccountData

impl UnwindSafe for AccountData

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T> PersistableConfig for T where
    T: Serialize + DeserializeOwned + ?Sized

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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