pub trait QueryMsgFns<Chain: QueryHandler + ChainState, CwOrchQueryMsgType>: CwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
// Provided methods
fn ownership(&self) -> Result<Ownership<Addr>, CwEnvError> { ... }
fn config(&self) -> Result<ConfigResponse, CwEnvError> { ... }
fn client_proxies(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<ClientProxiesResponse, CwEnvError> { ... }
fn client_proxy(
&self,
chain: impl Into<String>,
) -> Result<ClientProxyResponse, CwEnvError> { ... }
fn module_query(
&self,
msg: Binary,
target_module: InstalledModuleIdentification,
) -> Result<Binary, 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 ownership(&self) -> Result<Ownership<Addr>, CwEnvError>
fn ownership(&self) -> Result<Ownership<Addr>, CwEnvError>
Automatically generated wrapper around QueryMsg::Ownership variant
Sourcefn config(&self) -> Result<ConfigResponse, CwEnvError>
fn config(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
Sourcefn client_proxies(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<ClientProxiesResponse, CwEnvError>
fn client_proxies( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<ClientProxiesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ClientProxies variant
Sourcefn client_proxy(
&self,
chain: impl Into<String>,
) -> Result<ClientProxyResponse, CwEnvError>
fn client_proxy( &self, chain: impl Into<String>, ) -> Result<ClientProxyResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ClientProxy variant
Sourcefn module_query(
&self,
msg: Binary,
target_module: InstalledModuleIdentification,
) -> Result<Binary, CwEnvError>
fn module_query( &self, msg: Binary, target_module: InstalledModuleIdentification, ) -> Result<Binary, CwEnvError>
Automatically generated wrapper around QueryMsg::ModuleQuery 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.