Enum diem_client::MethodRequest[][src]

pub enum MethodRequest {
    Submit((String,)),
    GetMetadata((Option<u64>,)),
    GetAccount((AccountAddress,)),
    GetTransactions(u64u64bool),
    GetAccountTransaction(AccountAddressu64bool),
    GetAccountTransactions(AccountAddressu64u64bool),
    GetEvents(Stringu64u64),
    GetCurrencies([(); 0]),
    GetNetworkStatus([(); 0]),
    GetStateProof((u64,)),
    GetAccountStateWithProof(AccountAddressOption<u64>, Option<u64>),
    GetTransactionsWithProofs(u64u64),
    GetEventsWithProofs(Stringu64u64),
}

Variants

Submit((String,))
GetMetadata((Option<u64>,))
GetAccount((AccountAddress,))
GetTransactions(u64u64bool)
GetAccountTransaction(AccountAddressu64bool)
GetAccountTransactions(AccountAddressu64u64bool)
GetEvents(Stringu64u64)
GetCurrencies([(); 0])
GetNetworkStatus([(); 0])
GetStateProof((u64,))
GetAccountStateWithProof(AccountAddressOption<u64>, Option<u64>)
GetTransactionsWithProofs(u64u64)
GetEventsWithProofs(Stringu64u64)

Implementations

impl MethodRequest[src]

pub fn submit(txn: &SignedTransaction) -> Result<Self, Error>[src]

pub fn get_metadata_by_version(version: u64) -> Self[src]

pub fn get_metadata() -> Self[src]

pub fn get_account(address: AccountAddress) -> Self[src]

pub fn get_transactions(
    start_seq: u64,
    limit: u64,
    include_events: bool
) -> Self
[src]

pub fn get_account_transaction(
    address: AccountAddress,
    seq: u64,
    include_events: bool
) -> Self
[src]

pub fn get_account_transactions(
    address: AccountAddress,
    start_seq: u64,
    limit: u64,
    include_events: bool
) -> Self
[src]

pub fn get_events(key: &str, start_seq: u64, limit: u64) -> Self[src]

pub fn get_currencies() -> Self[src]

pub fn get_network_status() -> Self[src]

pub fn get_state_proof(from_version: u64) -> Self[src]

pub fn get_account_state_with_proof(
    address: AccountAddress,
    from_version: Option<u64>,
    to_version: Option<u64>
) -> Self
[src]

pub fn get_transactions_with_proofs(start_version: u64, limit: u64) -> Self[src]

pub fn get_events_with_proofs(key: &str, start_seq: u64, limit: u64) -> Self[src]

pub fn method(&self) -> Method[src]

Trait Implementations

impl Debug for MethodRequest[src]

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

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

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

impl<T> Instrument for T[src]

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> TestOnlyHash for T where
    T: Serialize + ?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>,