Enum diem_client::MethodResponse [−][src]
pub enum MethodResponse {
Show 16 variants
Submit,
GetMetadata(MetadataView),
GetAccount(Option<AccountView>),
GetTransactions(Vec<TransactionView>),
GetAccountTransaction(Option<TransactionView>),
GetAccountTransactions(Vec<TransactionView>),
GetEvents(Vec<EventView>),
GetCurrencies(Vec<CurrencyInfoView>),
GetNetworkStatus(u64),
GetStateProof(StateProofView),
GetAccumulatorConsistencyProof(AccumulatorConsistencyProofView),
GetAccountStateWithProof(AccountStateWithProofView),
GetTransactionsWithProofs(Option<TransactionsWithProofsView>),
GetAccountTransactionsWithProofs(AccountTransactionsWithProofView),
GetEventsWithProofs(Vec<EventWithProofView>),
GetEventByVersionWithProof(EventByVersionWithProofView),
}
Variants
GetMetadata(MetadataView)
Tuple Fields of GetMetadata
0: MetadataView
GetAccount(Option<AccountView>)
Tuple Fields of GetAccount
0: Option<AccountView>
GetTransactions(Vec<TransactionView>)
Tuple Fields of GetTransactions
0: Vec<TransactionView>
GetAccountTransaction(Option<TransactionView>)
Tuple Fields of GetAccountTransaction
GetAccountTransactions(Vec<TransactionView>)
Tuple Fields of GetAccountTransactions
0: Vec<TransactionView>
GetCurrencies(Vec<CurrencyInfoView>)
Tuple Fields of GetCurrencies
0: Vec<CurrencyInfoView>
GetNetworkStatus(u64)
Tuple Fields of GetNetworkStatus
0: u64
GetStateProof(StateProofView)
Tuple Fields of GetStateProof
GetAccumulatorConsistencyProof(AccumulatorConsistencyProofView)
Tuple Fields of GetAccumulatorConsistencyProof
GetAccountStateWithProof(AccountStateWithProofView)
Tuple Fields of GetAccountStateWithProof
GetTransactionsWithProofs(Option<TransactionsWithProofsView>)
Tuple Fields of GetTransactionsWithProofs
GetAccountTransactionsWithProofs(AccountTransactionsWithProofView)
Tuple Fields of GetAccountTransactionsWithProofs
GetEventsWithProofs(Vec<EventWithProofView>)
Tuple Fields of GetEventsWithProofs
GetEventByVersionWithProof(EventByVersionWithProofView)
Tuple Fields of GetEventByVersionWithProof
Implementations
pub fn try_into_get_accumulator_consistency_proof(
self
) -> Result<AccumulatorConsistencyProofView, Error>
pub fn try_into_get_account_state_with_proof(
self
) -> Result<AccountStateWithProofView, Error>
pub fn try_into_get_event_by_version_with_proof(
self
) -> Result<EventByVersionWithProofView, Error>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MethodResponse
impl Send for MethodResponse
impl Sync for MethodResponse
impl Unpin for MethodResponse
impl UnwindSafe for MethodResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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