Trait levana_perpswap_cosmos::result::QueryResultExt
source · pub trait QueryResultExt {
// Required method
fn query_result(&self) -> Result<QueryResponse>;
}
Expand description
Makes it easy to call .query_result() on any Serialize and standardizes so query() entry points also return a ContractResult
Required Methods§
sourcefn query_result(&self) -> Result<QueryResponse>
fn query_result(&self) -> Result<QueryResponse>
Convert the value to its JSON representation