Trait abstract_std::version_control::QueryMsgFns
source · pub trait QueryMsgFns<Chain: QueryHandler + ChainState>: CwOrchQuery<Chain, QueryMsg = QueryMsg> {
// Provided methods
fn account_base(
&self,
account_id: AccountId
) -> Result<AccountBaseResponse, CwOrchError> { ... }
fn modules(
&self,
infos: Vec<ModuleInfo>
) -> Result<ModulesResponse, CwOrchError> { ... }
fn namespaces(
&self,
accounts: Vec<AccountId>
) -> Result<NamespacesResponse, CwOrchError> { ... }
fn namespace(
&self,
namespace: Namespace
) -> Result<NamespaceResponse, CwOrchError> { ... }
fn config(&self) -> Result<ConfigResponse, CwOrchError> { ... }
fn module_list(
&self,
filter: Option<ModuleFilter>,
limit: Option<u8>,
start_after: Option<ModuleInfo>
) -> Result<ModulesListResponse, CwOrchError> { ... }
fn namespace_list(
&self,
limit: Option<u8>,
start_after: Option<String>
) -> Result<NamespaceListResponse, CwOrchError> { ... }
fn ownership(&self) -> Result<Ownership<String>, CwOrchError> { ... }
}
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 account_base(
&self,
account_id: AccountId
) -> Result<AccountBaseResponse, CwOrchError>
fn account_base( &self, account_id: AccountId ) -> Result<AccountBaseResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::AccountBase variant
sourcefn modules(
&self,
infos: Vec<ModuleInfo>
) -> Result<ModulesResponse, CwOrchError>
fn modules( &self, infos: Vec<ModuleInfo> ) -> Result<ModulesResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::Modules variant
sourcefn namespaces(
&self,
accounts: Vec<AccountId>
) -> Result<NamespacesResponse, CwOrchError>
fn namespaces( &self, accounts: Vec<AccountId> ) -> Result<NamespacesResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::Namespaces variant
sourcefn namespace(
&self,
namespace: Namespace
) -> Result<NamespaceResponse, CwOrchError>
fn namespace( &self, namespace: Namespace ) -> Result<NamespaceResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::Namespace variant
sourcefn config(&self) -> Result<ConfigResponse, CwOrchError>
fn config(&self) -> Result<ConfigResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::Config variant
sourcefn module_list(
&self,
filter: Option<ModuleFilter>,
limit: Option<u8>,
start_after: Option<ModuleInfo>
) -> Result<ModulesListResponse, CwOrchError>
fn module_list( &self, filter: Option<ModuleFilter>, limit: Option<u8>, start_after: Option<ModuleInfo> ) -> Result<ModulesListResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::ModuleList variant
sourcefn namespace_list(
&self,
limit: Option<u8>,
start_after: Option<String>
) -> Result<NamespaceListResponse, CwOrchError>
fn namespace_list( &self, limit: Option<u8>, start_after: Option<String> ) -> Result<NamespaceListResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::NamespaceList variant
Object Safety§
This trait is not object safe.