QueryMsgFns

Trait QueryMsgFns 

Source
pub trait QueryMsgFns<Chain: QueryHandler + ChainState, CwOrchQueryMsgType>: CwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>
where QueryMsg: Into<CwOrchQueryMsgType>,
{ // Provided methods fn balance( &self, address: impl Into<String>, ) -> Result<BalanceResponse, CwEnvError> { ... } fn token_info(&self) -> Result<TokenInfoResponse, CwEnvError> { ... } fn minter(&self) -> Result<MinterResponse, CwEnvError> { ... } fn allowance( &self, owner: impl Into<String>, spender: impl Into<String>, ) -> Result<AllowanceResponse, CwEnvError> { ... } fn all_allowances( &self, owner: impl Into<String>, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAllowancesResponse, CwEnvError> { ... } fn all_spender_allowances( &self, spender: impl Into<String>, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllSpenderAllowancesResponse, CwEnvError> { ... } fn all_accounts( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAccountsResponse, CwEnvError> { ... } fn marketing_info(&self) -> Result<MarketingInfoResponse, CwEnvError> { ... } fn download_logo(&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

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

Automatically generated wrapper around QueryMsg::Balance variant

Source

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

Automatically generated wrapper around QueryMsg::TokenInfo variant

Source

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

Automatically generated wrapper around QueryMsg::Minter variant

Source

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

Automatically generated wrapper around QueryMsg::Allowance variant

Source

fn all_allowances( &self, owner: impl Into<String>, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAllowancesResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AllAllowances variant

Source

fn all_spender_allowances( &self, spender: impl Into<String>, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllSpenderAllowancesResponse, CwEnvError>

Automatically generated wrapper around QueryMsg::AllSpenderAllowances variant

Source

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

Automatically generated wrapper around QueryMsg::AllAccounts variant

Source

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

Automatically generated wrapper around QueryMsg::MarketingInfo variant

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: QueryHandler + ChainState, CwOrchQueryMsgType, SupportedContract> QueryMsgFns<Chain, CwOrchQueryMsgType> for SupportedContract
where QueryMsg: Into<CwOrchQueryMsgType>, SupportedContract: CwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>,

Available on non-WebAssembly only.