Trait abstract_std::adapter::AsyncBaseQueryMsgFns

source ·
pub trait AsyncBaseQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where BaseQueryMsg: Into<CwOrchQueryMsgType>,
{ // Provided methods async fn base_config_async( &self, ) -> Result<AdapterConfigResponse, CwEnvError> { ... } async fn authorized_addresses_async( &self, proxy_address: impl Into<String>, ) -> Result<AuthorizedAddressesResponse, CwEnvError> { ... } async fn module_data_async(&self) -> Result<ModuleDataResponse, CwEnvError> { ... } }
Expand description

Automatically derived trait that allows you to call the variants of the message directly without the need to construct the struct yourself.

Provided Methods§

source

async fn base_config_async(&self) -> Result<AdapterConfigResponse, CwEnvError>

Automatically generated wrapper around BaseQueryMsg::BaseConfig variant

source

async fn authorized_addresses_async( &self, proxy_address: impl Into<String>, ) -> Result<AuthorizedAddressesResponse, CwEnvError>

Automatically generated wrapper around BaseQueryMsg::AuthorizedAddresses variant

source

async fn module_data_async(&self) -> Result<ModuleDataResponse, CwEnvError>

Automatically generated wrapper around BaseQueryMsg::ModuleData variant

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync, SupportedContract> AsyncBaseQueryMsgFns<Chain, CwOrchQueryMsgType> for SupportedContract
where BaseQueryMsg: Into<CwOrchQueryMsgType>, SupportedContract: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>,