pub trait QueryMsgFns<Chain: QueryHandler + ChainState, CwOrchQueryMsgType>: CwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
// Provided methods
fn accounts(
&self,
account_ids: Vec<AccountId>,
) -> Result<AccountsResponse, CwEnvError> { ... }
fn modules(
&self,
infos: Vec<ModuleInfo>,
) -> Result<ModulesResponse, CwEnvError> { ... }
fn namespaces(
&self,
accounts: Vec<AccountId>,
) -> Result<NamespacesResponse, CwEnvError> { ... }
fn namespace(
&self,
namespace: Namespace,
) -> Result<NamespaceResponse, CwEnvError> { ... }
fn config(&self) -> Result<ConfigResponse, CwEnvError> { ... }
fn account_list(
&self,
limit: Option<u8>,
start_after: Option<AccountId>,
) -> Result<AccountListResponse, CwEnvError> { ... }
fn module_list(
&self,
filter: Option<ModuleFilter>,
limit: Option<u8>,
start_after: Option<ModuleInfo>,
) -> Result<ModulesListResponse, CwEnvError> { ... }
fn namespace_list(
&self,
limit: Option<u8>,
start_after: Option<String>,
) -> Result<NamespaceListResponse, CwEnvError> { ... }
fn ownership(&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§
Sourcefn accounts(
&self,
account_ids: Vec<AccountId>,
) -> Result<AccountsResponse, CwEnvError>
fn accounts( &self, account_ids: Vec<AccountId>, ) -> Result<AccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Accounts variant
Sourcefn modules(&self, infos: Vec<ModuleInfo>) -> Result<ModulesResponse, CwEnvError>
fn modules(&self, infos: Vec<ModuleInfo>) -> Result<ModulesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Modules variant
Sourcefn namespaces(
&self,
accounts: Vec<AccountId>,
) -> Result<NamespacesResponse, CwEnvError>
fn namespaces( &self, accounts: Vec<AccountId>, ) -> Result<NamespacesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Namespaces variant
Sourcefn namespace(
&self,
namespace: Namespace,
) -> Result<NamespaceResponse, CwEnvError>
fn namespace( &self, namespace: Namespace, ) -> Result<NamespaceResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Namespace variant
Sourcefn config(&self) -> Result<ConfigResponse, CwEnvError>
fn config(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
Sourcefn account_list(
&self,
limit: Option<u8>,
start_after: Option<AccountId>,
) -> Result<AccountListResponse, CwEnvError>
fn account_list( &self, limit: Option<u8>, start_after: Option<AccountId>, ) -> Result<AccountListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AccountList variant
Sourcefn module_list(
&self,
filter: Option<ModuleFilter>,
limit: Option<u8>,
start_after: Option<ModuleInfo>,
) -> Result<ModulesListResponse, CwEnvError>
fn module_list( &self, filter: Option<ModuleFilter>, limit: Option<u8>, start_after: Option<ModuleInfo>, ) -> Result<ModulesListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ModuleList variant
Sourcefn namespace_list(
&self,
limit: Option<u8>,
start_after: Option<String>,
) -> Result<NamespaceListResponse, CwEnvError>
fn namespace_list( &self, limit: Option<u8>, start_after: Option<String>, ) -> Result<NamespaceListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::NamespaceList variant
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.