Enum diem_client::MethodRequest
source · 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§
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>)
Implementations§
source§impl MethodRequest
impl MethodRequest
pub fn submit(txn: &SignedTransaction) -> Result<Self, Error>
pub fn get_metadata_by_version(version: u64) -> Self
pub fn get_metadata() -> Self
pub fn get_account_by_version(address: AccountAddress, version: u64) -> Self
pub fn get_account(address: AccountAddress) -> Self
pub fn get_transactions(start_seq: u64, limit: u64, include_events: bool) -> Self
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_events(key: EventKey, start_seq: u64, limit: u64) -> Self
pub fn get_currencies() -> Self
pub fn get_network_status() -> Self
pub fn get_state_proof(from_version: u64) -> 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
pub fn get_events_with_proofs(key: EventKey, start_seq: u64, limit: u64) -> Self
pub fn get_event_by_version_with_proof( key: EventKey, version: Option<u64> ) -> Self
pub fn method(&self) -> Method
Trait Implementations§
source§impl Clone for MethodRequest
impl Clone for MethodRequest
source§fn clone(&self) -> MethodRequest
fn clone(&self) -> MethodRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MethodRequest
impl Debug for MethodRequest
source§impl<'de> Deserialize<'de> for MethodRequest
impl<'de> Deserialize<'de> for MethodRequest
source§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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.