pub trait QueryMsgFns<Chain: QueryHandler + ChainState, CwOrchQueryMsgType>: CwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
Show 15 methods
// Provided methods
fn config(&self) -> Result<ConfigResponse, CwEnvError> { ... }
fn assets(&self, names: Vec<String>) -> Result<AssetsResponse, CwEnvError> { ... }
fn asset_list(
&self,
filter: Option<AssetFilter>,
limit: Option<u8>,
start_after: Option<String>,
) -> Result<AssetListResponse, CwEnvError> { ... }
fn asset_infos(
&self,
infos: Vec<AssetInfoUnchecked>,
) -> Result<AssetInfosResponse, CwEnvError> { ... }
fn asset_info_list(
&self,
filter: Option<AssetInfoFilter>,
limit: Option<u8>,
start_after: Option<AssetInfoUnchecked>,
) -> Result<AssetInfoListResponse, CwEnvError> { ... }
fn contracts(
&self,
entries: Vec<ContractEntry>,
) -> Result<ContractsResponse, CwEnvError> { ... }
fn contract_list(
&self,
filter: Option<ContractFilter>,
limit: Option<u8>,
start_after: Option<ContractEntry>,
) -> Result<ContractListResponse, CwEnvError> { ... }
fn channels(
&self,
entries: Vec<ChannelEntry>,
) -> Result<ChannelsResponse, CwEnvError> { ... }
fn channel_list(
&self,
filter: Option<ChannelFilter>,
limit: Option<u8>,
start_after: Option<ChannelEntry>,
) -> Result<ChannelListResponse, CwEnvError> { ... }
fn registered_dexes(&self) -> Result<RegisteredDexesResponse, CwEnvError> { ... }
fn pools(
&self,
pairings: Vec<DexAssetPairing>,
) -> Result<PoolsResponse, CwEnvError> { ... }
fn pool_list(
&self,
filter: Option<AssetPairingFilter>,
limit: Option<u8>,
start_after: Option<DexAssetPairing>,
) -> Result<PoolAddressListResponse, CwEnvError> { ... }
fn pool_metadatas(
&self,
ids: Vec<UniquePoolId>,
) -> Result<PoolMetadatasResponse, CwEnvError> { ... }
fn pool_metadata_list(
&self,
filter: Option<PoolMetadataFilter>,
limit: Option<u8>,
start_after: Option<UniquePoolId>,
) -> Result<PoolMetadataListResponse, CwEnvError> { ... }
fn ownership(&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§
Sourcefn config(&self) -> Result<ConfigResponse, CwEnvError>
fn config(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
Sourcefn assets(&self, names: Vec<String>) -> Result<AssetsResponse, CwEnvError>
fn assets(&self, names: Vec<String>) -> Result<AssetsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Assets variant
Sourcefn asset_list(
&self,
filter: Option<AssetFilter>,
limit: Option<u8>,
start_after: Option<String>,
) -> Result<AssetListResponse, CwEnvError>
fn asset_list( &self, filter: Option<AssetFilter>, limit: Option<u8>, start_after: Option<String>, ) -> Result<AssetListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetList variant
Sourcefn asset_infos(
&self,
infos: Vec<AssetInfoUnchecked>,
) -> Result<AssetInfosResponse, CwEnvError>
fn asset_infos( &self, infos: Vec<AssetInfoUnchecked>, ) -> Result<AssetInfosResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetInfos variant
Sourcefn asset_info_list(
&self,
filter: Option<AssetInfoFilter>,
limit: Option<u8>,
start_after: Option<AssetInfoUnchecked>,
) -> Result<AssetInfoListResponse, CwEnvError>
fn asset_info_list( &self, filter: Option<AssetInfoFilter>, limit: Option<u8>, start_after: Option<AssetInfoUnchecked>, ) -> Result<AssetInfoListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetInfoList variant
Sourcefn contracts(
&self,
entries: Vec<ContractEntry>,
) -> Result<ContractsResponse, CwEnvError>
fn contracts( &self, entries: Vec<ContractEntry>, ) -> Result<ContractsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Contracts variant
Sourcefn contract_list(
&self,
filter: Option<ContractFilter>,
limit: Option<u8>,
start_after: Option<ContractEntry>,
) -> Result<ContractListResponse, CwEnvError>
fn contract_list( &self, filter: Option<ContractFilter>, limit: Option<u8>, start_after: Option<ContractEntry>, ) -> Result<ContractListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ContractList variant
Sourcefn channels(
&self,
entries: Vec<ChannelEntry>,
) -> Result<ChannelsResponse, CwEnvError>
fn channels( &self, entries: Vec<ChannelEntry>, ) -> Result<ChannelsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Channels variant
Sourcefn channel_list(
&self,
filter: Option<ChannelFilter>,
limit: Option<u8>,
start_after: Option<ChannelEntry>,
) -> Result<ChannelListResponse, CwEnvError>
fn channel_list( &self, filter: Option<ChannelFilter>, limit: Option<u8>, start_after: Option<ChannelEntry>, ) -> Result<ChannelListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ChannelList variant
Sourcefn registered_dexes(&self) -> Result<RegisteredDexesResponse, CwEnvError>
fn registered_dexes(&self) -> Result<RegisteredDexesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::RegisteredDexes variant
Sourcefn pools(
&self,
pairings: Vec<DexAssetPairing>,
) -> Result<PoolsResponse, CwEnvError>
fn pools( &self, pairings: Vec<DexAssetPairing>, ) -> Result<PoolsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Pools variant
Sourcefn pool_list(
&self,
filter: Option<AssetPairingFilter>,
limit: Option<u8>,
start_after: Option<DexAssetPairing>,
) -> Result<PoolAddressListResponse, CwEnvError>
fn pool_list( &self, filter: Option<AssetPairingFilter>, limit: Option<u8>, start_after: Option<DexAssetPairing>, ) -> Result<PoolAddressListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolList variant
Sourcefn pool_metadatas(
&self,
ids: Vec<UniquePoolId>,
) -> Result<PoolMetadatasResponse, CwEnvError>
fn pool_metadatas( &self, ids: Vec<UniquePoolId>, ) -> Result<PoolMetadatasResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolMetadatas variant
Sourcefn pool_metadata_list(
&self,
filter: Option<PoolMetadataFilter>,
limit: Option<u8>,
start_after: Option<UniquePoolId>,
) -> Result<PoolMetadataListResponse, CwEnvError>
fn pool_metadata_list( &self, filter: Option<PoolMetadataFilter>, limit: Option<u8>, start_after: Option<UniquePoolId>, ) -> Result<PoolMetadataListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolMetadataList 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.