pub enum QueryMsg {
Show 15 variants
Config {},
Assets {
names: Vec<String>,
},
AssetList {
filter: Option<AssetFilter>,
start_after: Option<String>,
limit: Option<u8>,
},
AssetInfos {
infos: Vec<AssetInfoUnchecked>,
},
AssetInfoList {
filter: Option<AssetInfoFilter>,
start_after: Option<AssetInfoUnchecked>,
limit: Option<u8>,
},
Contracts {
entries: Vec<ContractEntry>,
},
ContractList {
filter: Option<ContractFilter>,
start_after: Option<ContractEntry>,
limit: Option<u8>,
},
Channels {
entries: Vec<ChannelEntry>,
},
ChannelList {
filter: Option<ChannelFilter>,
start_after: Option<ChannelEntry>,
limit: Option<u8>,
},
RegisteredDexes {},
Pools {
pairings: Vec<DexAssetPairing>,
},
PoolList {
filter: Option<AssetPairingFilter>,
start_after: Option<DexAssetPairing>,
limit: Option<u8>,
},
PoolMetadatas {
ids: Vec<UniquePoolId>,
},
PoolMetadataList {
filter: Option<PoolMetadataFilter>,
start_after: Option<UniquePoolId>,
limit: Option<u8>,
},
Ownership {},
}
Expand description
AnsHost smart-query
Variants§
Config
Query the config
Returns ConfigResponse
Assets
Queries assets based on name
returns AssetsResponse
AssetList
Page over assets
returns AssetListResponse
AssetInfos
Queries assets based on address
returns AssetInfosResponse
Fields
infos: Vec<AssetInfoUnchecked>
AssetInfoList
Page over asset infos
returns AssetInfoListResponse
Contracts
Queries contracts based on name
returns ContractsResponse
Fields
entries: Vec<ContractEntry>
ContractList
Page over contracts
returns ContractListResponse
Channels
Queries contracts based on name
returns ChannelsResponse
Fields
entries: Vec<ChannelEntry>
ChannelList
Page over contracts
returns ChannelListResponse
RegisteredDexes
Retrieve the registered dexes
returns RegisteredDexesResponse
Pools
Retrieve the pools with the specified keys
returns PoolsResponse
Fields
pairings: Vec<DexAssetPairing>
PoolList
Retrieve the (optionally-filtered) list of pools.
returns PoolAddressListResponse
PoolMetadatas
Get the pool metadatas for given pool ids
returns PoolMetadatasResponse
Fields
ids: Vec<UniquePoolId>
PoolMetadataList
Retrieve the (optionally-filtered) list of pool metadatas
returns PoolMetadataListResponse
Ownership
Query the contract’s ownership information
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryMsg
impl<'de> Deserialize<'de> for QueryMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for QueryMsg
impl JsonSchema for QueryMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl QueryResponses for QueryMsg
impl QueryResponses for QueryMsg
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas() -> Result<BTreeMap<String, RootSchema>, IntegrityError>
impl StructuralPartialEq for QueryMsg
Auto Trait Implementations§
impl Freeze for QueryMsg
impl RefUnwindSafe for QueryMsg
impl Send for QueryMsg
impl Sync for QueryMsg
impl Unpin for QueryMsg
impl UnwindSafe for QueryMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more