Enum diem_sdk::client::MethodRequest
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§
§impl MethodRequest
impl MethodRequest
pub fn submit(txn: &SignedTransaction) -> Result<MethodRequest, Error>
pub fn get_metadata_by_version(version: u64) -> MethodRequest
pub fn get_metadata() -> MethodRequest
pub fn get_account_by_version( address: AccountAddress, version: u64 ) -> MethodRequest
pub fn get_account(address: AccountAddress) -> MethodRequest
pub fn get_transactions( start_seq: u64, limit: u64, include_events: bool ) -> MethodRequest
pub fn get_account_transaction( address: AccountAddress, seq: u64, include_events: bool ) -> MethodRequest
pub fn get_account_transactions( address: AccountAddress, start_seq: u64, limit: u64, include_events: bool ) -> MethodRequest
pub fn get_events(key: EventKey, start_seq: u64, limit: u64) -> MethodRequest
pub fn get_currencies() -> MethodRequest
pub fn get_network_status() -> MethodRequest
pub fn get_state_proof(from_version: u64) -> MethodRequest
pub fn get_accumulator_consistency_proof( client_known_version: Option<u64>, ledger_version: Option<u64> ) -> MethodRequest
pub fn get_account_state_with_proof( address: AccountAddress, version: Option<u64>, ledger_version: Option<u64> ) -> MethodRequest
pub fn get_transactions_with_proofs( start_version: u64, limit: u64, include_events: bool ) -> MethodRequest
pub fn get_account_transactions_with_proofs( address: AccountAddress, start_seq: u64, limit: u64, include_events: bool, ledger_version: Option<u64> ) -> MethodRequest
pub fn get_events_with_proofs( key: EventKey, start_seq: u64, limit: u64 ) -> MethodRequest
pub fn get_event_by_version_with_proof( key: EventKey, version: Option<u64> ) -> MethodRequest
pub fn method(&self) -> Method
Trait Implementations§
§impl Clone for MethodRequest
impl Clone for MethodRequest
§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 more§impl Debug for MethodRequest
impl Debug for MethodRequest
§impl<'de> Deserialize<'de> for MethodRequest
impl<'de> Deserialize<'de> for MethodRequest
§fn deserialize<__D>(
__deserializer: __D
) -> Result<MethodRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<MethodRequest, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for MethodRequest
impl Serialize for MethodRequest
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. 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.