Enum cosmwasm_std::QueryRequest [−][src]
#[non_exhaustive]
pub enum QueryRequest<C> {
Bank(BankQuery),
Custom(C),
Staking(StakingQuery),
Stargate {
path: String,
data: Binary,
},
Ibc(IbcQuery),
Wasm(WasmQuery),
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bank(BankQuery)
Tuple Fields of Bank
0: BankQuery
Staking(StakingQuery)
Tuple Fields of Staking
0: StakingQuery
A Stargate query encoded the same way as abci_query, with path and protobuf encoded Data. The format is defined in ADR-21 The response is also protobuf encoded. The caller is responsible for compiling the proper protobuf definitions
Fields of Stargate
Ibc(IbcQuery)
Tuple Fields of Ibc
0: IbcQuery
Wasm(WasmQuery)
Tuple Fields of Wasm
0: WasmQuery
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
Performs the conversion.
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<C> RefUnwindSafe for QueryRequest<C> where
C: RefUnwindSafe,
impl<C> Send for QueryRequest<C> where
C: Send,
impl<C> Sync for QueryRequest<C> where
C: Sync,
impl<C> Unpin for QueryRequest<C> where
C: Unpin,
impl<C> UnwindSafe for QueryRequest<C> where
C: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more