Trait abstract_std::version_control::AsyncQueryMsgFns

source ·
pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where QueryMsg: Into<CwOrchQueryMsgType>,
{ // Provided methods async fn account_base_async( &self, account_id: AccountId, ) -> Result<AccountBaseResponse, CwEnvError> { ... } async fn modules_async( &self, infos: Vec<ModuleInfo>, ) -> Result<ModulesResponse, CwEnvError> { ... } async fn namespaces_async( &self, accounts: Vec<AccountId>, ) -> Result<NamespacesResponse, CwEnvError> { ... } async fn namespace_async( &self, namespace: Namespace, ) -> Result<NamespaceResponse, CwEnvError> { ... } async fn config_async(&self) -> Result<ConfigResponse, CwEnvError> { ... } async fn module_list_async( &self, filter: Option<ModuleFilter>, limit: Option<u8>, start_after: Option<ModuleInfo>, ) -> Result<ModulesListResponse, CwEnvError> { ... } async fn namespace_list_async( &self, limit: Option<u8>, start_after: Option<String>, ) -> Result<NamespaceListResponse, CwEnvError> { ... } async fn ownership_async(&self) -> Result<Ownership<String>, 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 account_base_async( &self, account_id: AccountId, ) -> Result<AccountBaseResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AccountBase variant

source

async fn modules_async( &self, infos: Vec<ModuleInfo>, ) -> Result<ModulesResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Modules variant

source

async fn namespaces_async( &self, accounts: Vec<AccountId>, ) -> Result<NamespacesResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Namespaces variant

source

async fn namespace_async( &self, namespace: Namespace, ) -> Result<NamespaceResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Namespace variant

source

async fn config_async(&self) -> Result<ConfigResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Config variant

source

async fn module_list_async( &self, filter: Option<ModuleFilter>, limit: Option<u8>, start_after: Option<ModuleInfo>, ) -> Result<ModulesListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ModuleList variant

source

async fn namespace_list_async( &self, limit: Option<u8>, start_after: Option<String>, ) -> Result<NamespaceListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::NamespaceList variant

source

async fn ownership_async(&self) -> Result<Ownership<String>, CwEnvError>

Automatically generated wrapper around QueryMsg::Ownership variant

Object Safety§

This trait is not object safe.

Implementors§

source§

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