pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
Show 15 methods
// Provided methods
async fn config_async(&self) -> Result<ConfigResponse, CwEnvError> { ... }
async fn assets_async(
&self,
names: Vec<String>,
) -> Result<AssetsResponse, CwEnvError> { ... }
async fn asset_list_async(
&self,
filter: Option<AssetFilter>,
limit: Option<u8>,
start_after: Option<String>,
) -> Result<AssetListResponse, CwEnvError> { ... }
async fn asset_infos_async(
&self,
infos: Vec<AssetInfoUnchecked>,
) -> Result<AssetInfosResponse, CwEnvError> { ... }
async fn asset_info_list_async(
&self,
filter: Option<AssetInfoFilter>,
limit: Option<u8>,
start_after: Option<AssetInfoUnchecked>,
) -> Result<AssetInfoListResponse, CwEnvError> { ... }
async fn contracts_async(
&self,
entries: Vec<ContractEntry>,
) -> Result<ContractsResponse, CwEnvError> { ... }
async fn contract_list_async(
&self,
filter: Option<ContractFilter>,
limit: Option<u8>,
start_after: Option<ContractEntry>,
) -> Result<ContractListResponse, CwEnvError> { ... }
async fn channels_async(
&self,
entries: Vec<ChannelEntry>,
) -> Result<ChannelsResponse, CwEnvError> { ... }
async fn channel_list_async(
&self,
filter: Option<ChannelFilter>,
limit: Option<u8>,
start_after: Option<ChannelEntry>,
) -> Result<ChannelListResponse, CwEnvError> { ... }
async fn registered_dexes_async(
&self,
) -> Result<RegisteredDexesResponse, CwEnvError> { ... }
async fn pools_async(
&self,
pairings: Vec<DexAssetPairing>,
) -> Result<PoolsResponse, CwEnvError> { ... }
async fn pool_list_async(
&self,
filter: Option<AssetPairingFilter>,
limit: Option<u8>,
start_after: Option<DexAssetPairing>,
) -> Result<PoolAddressListResponse, CwEnvError> { ... }
async fn pool_metadatas_async(
&self,
ids: Vec<UniquePoolId>,
) -> Result<PoolMetadatasResponse, CwEnvError> { ... }
async fn pool_metadata_list_async(
&self,
filter: Option<PoolMetadataFilter>,
limit: Option<u8>,
start_after: Option<UniquePoolId>,
) -> Result<PoolMetadataListResponse, CwEnvError> { ... }
async fn ownership_async(&self) -> Result<Ownership<String>, 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§
Sourceasync fn config_async(&self) -> Result<ConfigResponse, CwEnvError>
async fn config_async(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
Sourceasync fn assets_async(
&self,
names: Vec<String>,
) -> Result<AssetsResponse, CwEnvError>
async fn assets_async( &self, names: Vec<String>, ) -> Result<AssetsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Assets variant
Sourceasync fn asset_list_async(
&self,
filter: Option<AssetFilter>,
limit: Option<u8>,
start_after: Option<String>,
) -> Result<AssetListResponse, CwEnvError>
async fn asset_list_async( &self, filter: Option<AssetFilter>, limit: Option<u8>, start_after: Option<String>, ) -> Result<AssetListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetList variant
Sourceasync fn asset_infos_async(
&self,
infos: Vec<AssetInfoUnchecked>,
) -> Result<AssetInfosResponse, CwEnvError>
async fn asset_infos_async( &self, infos: Vec<AssetInfoUnchecked>, ) -> Result<AssetInfosResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetInfos variant
Sourceasync fn asset_info_list_async(
&self,
filter: Option<AssetInfoFilter>,
limit: Option<u8>,
start_after: Option<AssetInfoUnchecked>,
) -> Result<AssetInfoListResponse, CwEnvError>
async fn asset_info_list_async( &self, filter: Option<AssetInfoFilter>, limit: Option<u8>, start_after: Option<AssetInfoUnchecked>, ) -> Result<AssetInfoListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetInfoList variant
Sourceasync fn contracts_async(
&self,
entries: Vec<ContractEntry>,
) -> Result<ContractsResponse, CwEnvError>
async fn contracts_async( &self, entries: Vec<ContractEntry>, ) -> Result<ContractsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Contracts variant
Sourceasync fn contract_list_async(
&self,
filter: Option<ContractFilter>,
limit: Option<u8>,
start_after: Option<ContractEntry>,
) -> Result<ContractListResponse, CwEnvError>
async fn contract_list_async( &self, filter: Option<ContractFilter>, limit: Option<u8>, start_after: Option<ContractEntry>, ) -> Result<ContractListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ContractList variant
Sourceasync fn channels_async(
&self,
entries: Vec<ChannelEntry>,
) -> Result<ChannelsResponse, CwEnvError>
async fn channels_async( &self, entries: Vec<ChannelEntry>, ) -> Result<ChannelsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Channels variant
Sourceasync fn channel_list_async(
&self,
filter: Option<ChannelFilter>,
limit: Option<u8>,
start_after: Option<ChannelEntry>,
) -> Result<ChannelListResponse, CwEnvError>
async fn channel_list_async( &self, filter: Option<ChannelFilter>, limit: Option<u8>, start_after: Option<ChannelEntry>, ) -> Result<ChannelListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ChannelList variant
Sourceasync fn registered_dexes_async(
&self,
) -> Result<RegisteredDexesResponse, CwEnvError>
async fn registered_dexes_async( &self, ) -> Result<RegisteredDexesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::RegisteredDexes variant
Sourceasync fn pools_async(
&self,
pairings: Vec<DexAssetPairing>,
) -> Result<PoolsResponse, CwEnvError>
async fn pools_async( &self, pairings: Vec<DexAssetPairing>, ) -> Result<PoolsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Pools variant
Sourceasync fn pool_list_async(
&self,
filter: Option<AssetPairingFilter>,
limit: Option<u8>,
start_after: Option<DexAssetPairing>,
) -> Result<PoolAddressListResponse, CwEnvError>
async fn pool_list_async( &self, filter: Option<AssetPairingFilter>, limit: Option<u8>, start_after: Option<DexAssetPairing>, ) -> Result<PoolAddressListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolList variant
Sourceasync fn pool_metadatas_async(
&self,
ids: Vec<UniquePoolId>,
) -> Result<PoolMetadatasResponse, CwEnvError>
async fn pool_metadatas_async( &self, ids: Vec<UniquePoolId>, ) -> Result<PoolMetadatasResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolMetadatas variant
Sourceasync fn pool_metadata_list_async(
&self,
filter: Option<PoolMetadataFilter>,
limit: Option<u8>,
start_after: Option<UniquePoolId>,
) -> Result<PoolMetadataListResponse, CwEnvError>
async fn pool_metadata_list_async( &self, filter: Option<PoolMetadataFilter>, limit: Option<u8>, start_after: Option<UniquePoolId>, ) -> Result<PoolMetadataListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolMetadataList variant
Sourceasync fn ownership_async(&self) -> Result<Ownership<String>, CwEnvError>
async fn ownership_async(&self) -> Result<Ownership<String>, CwEnvError>
Automatically generated wrapper around QueryMsg::Ownership 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.