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§

source

fn account_base( &self, account_id: AccountId ) -> Result<AccountBaseResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::AccountBase variant

source

fn modules( &self, infos: Vec<ModuleInfo> ) -> Result<ModulesResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Modules variant

source

fn namespaces( &self, accounts: Vec<AccountId> ) -> Result<NamespacesResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Namespaces variant

source

fn namespace( &self, namespace: Namespace ) -> Result<NamespaceResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Namespace variant

source

fn config(&self) -> Result<ConfigResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Config variant

source

fn module_list( &self, filter: Option<ModuleFilter>, limit: Option<u8>, start_after: Option<ModuleInfo> ) -> Result<ModulesListResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::ModuleList variant

source

fn namespace_list( &self, limit: Option<u8>, start_after: Option<String> ) -> Result<NamespaceListResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::NamespaceList variant

source

fn ownership(&self) -> Result<Ownership<String>, CwOrchError>

Automatically generated wrapper around QueryMsg::Ownership variant

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<SupportedContract, Chain: QueryHandler + ChainState> QueryMsgFns<Chain> for SupportedContract
where SupportedContract: CwOrchQuery<Chain, QueryMsg = QueryMsg>,