Trait abstract_std::module_factory::QueryMsgFns

source ·
pub trait QueryMsgFns<Chain: QueryHandler + ChainState>: CwOrchQuery<Chain, QueryMsg = QueryMsg> {
    // Provided methods
    fn config(&self) -> Result<ConfigResponse, CwOrchError> { ... }
    fn simulate_install_modules(
        &self,
        modules: Vec<ModuleInfo>
    ) -> Result<SimulateInstallModulesResponse, 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 config(&self) -> Result<ConfigResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::Config variant

source

fn simulate_install_modules( &self, modules: Vec<ModuleInfo> ) -> Result<SimulateInstallModulesResponse, CwOrchError>

Automatically generated wrapper around QueryMsg::SimulateInstallModules 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>,