AsyncQueryMsgFns

Trait AsyncQueryMsgFns 

Source
pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where QueryMsg: Into<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§

Source

async fn balance_async( &self, address: impl Into<String>, ) -> Result<BalanceResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Balance variant

Source

async fn token_info_async(&self) -> Result<TokenInfoResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::TokenInfo variant

Source

async fn minter_async(&self) -> Result<MinterResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Minter variant

Source

async fn allowance_async( &self, owner: impl Into<String>, spender: impl Into<String>, ) -> Result<AllowanceResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::Allowance variant

Source

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

Source

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

Source

async fn all_accounts_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAccountsResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AllAccounts variant

Source

async fn marketing_info_async( &self, ) -> Result<MarketingInfoResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::MarketingInfo variant

Source

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.

Implementors§

Source§

impl<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync, SupportedContract> AsyncQueryMsgFns<Chain, CwOrchQueryMsgType> for SupportedContract
where QueryMsg: Into<CwOrchQueryMsgType>, SupportedContract: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>,

Available on non-WebAssembly only.