abstract_std::ans_host

Trait QueryMsgFns

Source
pub trait QueryMsgFns<Chain: QueryHandler + ChainState, CwOrchQueryMsgType>: CwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where QueryMsg: Into<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§

Source

fn config(&self) -> Result<ConfigResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Config variant

Source

fn assets(&self, names: Vec<String>) -> Result<AssetsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Assets variant

Source

fn asset_list( &self, filter: Option<AssetFilter>, limit: Option<u8>, start_after: Option<String>, ) -> Result<AssetListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetList variant

Source

fn asset_infos( &self, infos: Vec<AssetInfoUnchecked>, ) -> Result<AssetInfosResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AssetInfos variant

Source

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

Source

fn contracts( &self, entries: Vec<ContractEntry>, ) -> Result<ContractsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Contracts variant

Source

fn contract_list( &self, filter: Option<ContractFilter>, limit: Option<u8>, start_after: Option<ContractEntry>, ) -> Result<ContractListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ContractList variant

Source

fn channels( &self, entries: Vec<ChannelEntry>, ) -> Result<ChannelsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Channels variant

Source

fn channel_list( &self, filter: Option<ChannelFilter>, limit: Option<u8>, start_after: Option<ChannelEntry>, ) -> Result<ChannelListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::ChannelList variant

Source

fn registered_dexes(&self) -> Result<RegisteredDexesResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::RegisteredDexes variant

Source

fn pools( &self, pairings: Vec<DexAssetPairing>, ) -> Result<PoolsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Pools variant

Source

fn pool_list( &self, filter: Option<AssetPairingFilter>, limit: Option<u8>, start_after: Option<DexAssetPairing>, ) -> Result<PoolAddressListResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::PoolList variant

Source

fn pool_metadatas( &self, ids: Vec<UniquePoolId>, ) -> Result<PoolMetadatasResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::PoolMetadatas variant

Source

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

Source

fn ownership(&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.

Implementors§

Source§

impl<Chain: QueryHandler + ChainState, CwOrchQueryMsgType, SupportedContract> QueryMsgFns<Chain, CwOrchQueryMsgType> for SupportedContract
where QueryMsg: Into<CwOrchQueryMsgType>, SupportedContract: CwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>,