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 host(
&self,
chain_name: TruncatedChainId,
) -> Result<HostResponse, CwEnvError> { ... }
fn list_accounts(
&self,
limit: Option<u32>,
start: Option<(AccountId, String)>,
) -> Result<ListAccountsResponse, CwEnvError> { ... }
fn remote_account(
&self,
account_id: AccountId,
chain_name: TruncatedChainId,
) -> Result<AccountResponse, CwEnvError> { ... }
fn list_remote_hosts(&self) -> Result<ListRemoteHostsResponse, CwEnvError> { ... }
fn list_remote_proxies(
&self,
) -> Result<ListRemoteProxiesResponse, CwEnvError> { ... }
fn list_remote_accounts_by_account_id(
&self,
account_id: AccountId,
) -> Result<ListRemoteAccountsResponse, CwEnvError> { ... }
fn list_ibc_infrastructures(
&self,
) -> Result<ListIbcInfrastructureResponse, 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 host(&self, chain_name: TruncatedChainId) -> Result<HostResponse, CwEnvError>
fn host(&self, chain_name: TruncatedChainId) -> Result<HostResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Host variant
Sourcefn list_accounts(
&self,
limit: Option<u32>,
start: Option<(AccountId, String)>,
) -> Result<ListAccountsResponse, CwEnvError>
fn list_accounts( &self, limit: Option<u32>, start: Option<(AccountId, String)>, ) -> Result<ListAccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListAccounts variant
Sourcefn remote_account(
&self,
account_id: AccountId,
chain_name: TruncatedChainId,
) -> Result<AccountResponse, CwEnvError>
fn remote_account( &self, account_id: AccountId, chain_name: TruncatedChainId, ) -> Result<AccountResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Account variant
Sourcefn list_remote_hosts(&self) -> Result<ListRemoteHostsResponse, CwEnvError>
fn list_remote_hosts(&self) -> Result<ListRemoteHostsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListRemoteHosts variant
Sourcefn list_remote_proxies(&self) -> Result<ListRemoteProxiesResponse, CwEnvError>
fn list_remote_proxies(&self) -> Result<ListRemoteProxiesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListRemoteProxies variant
Sourcefn list_remote_accounts_by_account_id(
&self,
account_id: AccountId,
) -> Result<ListRemoteAccountsResponse, CwEnvError>
fn list_remote_accounts_by_account_id( &self, account_id: AccountId, ) -> Result<ListRemoteAccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListRemoteAccountsByAccountId variant
Sourcefn list_ibc_infrastructures(
&self,
) -> Result<ListIbcInfrastructureResponse, CwEnvError>
fn list_ibc_infrastructures( &self, ) -> Result<ListIbcInfrastructureResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListIbcInfrastructures 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.