Enum diem_client::MethodRequest [−][src]
pub enum MethodRequest {
Show 16 variants
Submit((String,)),
GetMetadata((Option<u64>,)),
GetAccount(AccountAddress, Option<u64>),
GetTransactions(u64, u64, bool),
GetAccountTransaction(AccountAddress, u64, bool),
GetAccountTransactions(AccountAddress, u64, u64, bool),
GetEvents(EventKey, u64, u64),
GetCurrencies([(); 0]),
GetNetworkStatus([(); 0]),
GetStateProof((u64,)),
GetAccumulatorConsistencyProof(Option<u64>, Option<u64>),
GetAccountStateWithProof(AccountAddress, Option<u64>, Option<u64>),
GetTransactionsWithProofs(u64, u64, bool),
GetAccountTransactionsWithProofs(AccountAddress, u64, u64, bool, Option<u64>),
GetEventsWithProofs(EventKey, u64, u64),
GetEventByVersionWithProof(EventKey, Option<u64>),
}
Variants
GetAccount(AccountAddress, Option<u64>)
Tuple Fields of GetAccount
0: AccountAddress
1: Option<u64>
GetAccountTransaction(AccountAddress, u64, bool)
Tuple Fields of GetAccountTransaction
GetAccountTransactions(AccountAddress, u64, u64, bool)
Tuple Fields of GetAccountTransactions
GetAccountStateWithProof(AccountAddress, Option<u64>, Option<u64>)
Tuple Fields of GetAccountStateWithProof
Implementations
pub fn get_account_transaction(
address: AccountAddress,
seq: u64,
include_events: bool
) -> Self
pub fn get_account_transactions(
address: AccountAddress,
start_seq: u64,
limit: u64,
include_events: bool
) -> Self
pub fn get_accumulator_consistency_proof(
client_known_version: Option<u64>,
ledger_version: Option<u64>
) -> Self
pub fn get_account_state_with_proof(
address: AccountAddress,
version: Option<u64>,
ledger_version: Option<u64>
) -> Self
pub fn get_transactions_with_proofs(
start_version: u64,
limit: u64,
include_events: bool
) -> Self
pub fn get_account_transactions_with_proofs(
address: AccountAddress,
start_seq: u64,
limit: u64,
include_events: bool,
ledger_version: Option<u64>
) -> Self
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for MethodRequest
impl Send for MethodRequest
impl Sync for MethodRequest
impl Unpin for MethodRequest
impl UnwindSafe for MethodRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Generates a hash used only for tests.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more