pub trait WasmQuery {
type Q: Serialize;
// Required method
fn query<'life0, 'async_trait, G>(
&'life0 self,
query_msg: Self::Q,
) -> Pin<Box<dyn Future<Output = Result<G, CosmScriptError>> + 'async_trait>>
where G: 'async_trait + Serialize + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Smart Contract query endpoint
Required Associated Types§
Required Methods§
fn query<'life0, 'async_trait, G>(
&'life0 self,
query_msg: Self::Q,
) -> Pin<Box<dyn Future<Output = Result<G, CosmScriptError>> + 'async_trait>>where
G: 'async_trait + Serialize + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.