pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
// Provided methods
async fn balance_async(
&self,
address: impl Into<String>,
) -> Result<BalanceResponse, CwEnvError> { ... }
async fn token_info_async(&self) -> Result<TokenInfoResponse, CwEnvError> { ... }
async fn minter_async(&self) -> Result<MinterResponse, CwEnvError> { ... }
async fn allowance_async(
&self,
owner: impl Into<String>,
spender: impl Into<String>,
) -> Result<AllowanceResponse, CwEnvError> { ... }
async fn all_allowances_async(
&self,
owner: impl Into<String>,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllAllowancesResponse, CwEnvError> { ... }
async fn all_spender_allowances_async(
&self,
spender: impl Into<String>,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllSpenderAllowancesResponse, CwEnvError> { ... }
async fn all_accounts_async(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllAccountsResponse, CwEnvError> { ... }
async fn marketing_info_async(
&self,
) -> Result<MarketingInfoResponse, CwEnvError> { ... }
async fn download_logo_async(
&self,
) -> Result<DownloadLogoResponse, 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 balance_async(
&self,
address: impl Into<String>,
) -> Result<BalanceResponse, CwEnvError>
async fn balance_async( &self, address: impl Into<String>, ) -> Result<BalanceResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Balance variant
Sourceasync fn token_info_async(&self) -> Result<TokenInfoResponse, CwEnvError>
async fn token_info_async(&self) -> Result<TokenInfoResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::TokenInfo variant
Sourceasync fn minter_async(&self) -> Result<MinterResponse, CwEnvError>
async fn minter_async(&self) -> Result<MinterResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Minter variant
Sourceasync fn allowance_async(
&self,
owner: impl Into<String>,
spender: impl Into<String>,
) -> Result<AllowanceResponse, CwEnvError>
async fn allowance_async( &self, owner: impl Into<String>, spender: impl Into<String>, ) -> Result<AllowanceResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Allowance variant
Sourceasync fn all_allowances_async(
&self,
owner: impl Into<String>,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllAllowancesResponse, CwEnvError>
async fn all_allowances_async( &self, owner: impl Into<String>, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAllowancesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AllAllowances variant
Sourceasync fn all_spender_allowances_async(
&self,
spender: impl Into<String>,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllSpenderAllowancesResponse, CwEnvError>
async fn all_spender_allowances_async( &self, spender: impl Into<String>, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllSpenderAllowancesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AllSpenderAllowances variant
Sourceasync fn all_accounts_async(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllAccountsResponse, CwEnvError>
async fn all_accounts_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AllAccounts variant
Sourceasync fn marketing_info_async(
&self,
) -> Result<MarketingInfoResponse, CwEnvError>
async fn marketing_info_async( &self, ) -> Result<MarketingInfoResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::MarketingInfo variant
Sourceasync fn download_logo_async(&self) -> Result<DownloadLogoResponse, CwEnvError>
async fn download_logo_async(&self) -> Result<DownloadLogoResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::DownloadLogo 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.