pub trait QueryMsgFns<Chain: QueryHandler + ChainState, CwOrchQueryMsgType>: CwOrchQuery<Chain, QueryMsg = 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§
Sourcefn balance(
&self,
address: impl Into<String>,
) -> Result<BalanceResponse, CwEnvError>
fn balance( &self, address: impl Into<String>, ) -> Result<BalanceResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Balance variant
Sourcefn token_info(&self) -> Result<TokenInfoResponse, CwEnvError>
fn token_info(&self) -> Result<TokenInfoResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::TokenInfo variant
Sourcefn minter(&self) -> Result<MinterResponse, CwEnvError>
fn minter(&self) -> Result<MinterResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Minter variant
Sourcefn allowance(
&self,
owner: impl Into<String>,
spender: impl Into<String>,
) -> Result<AllowanceResponse, CwEnvError>
fn allowance( &self, owner: impl Into<String>, spender: impl Into<String>, ) -> Result<AllowanceResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Allowance variant
Sourcefn all_allowances(
&self,
owner: impl Into<String>,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllAllowancesResponse, CwEnvError>
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
Sourcefn all_spender_allowances(
&self,
spender: impl Into<String>,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllSpenderAllowancesResponse, CwEnvError>
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
Sourcefn all_accounts(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<AllAccountsResponse, CwEnvError>
fn all_accounts( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<AllAccountsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AllAccounts variant
Sourcefn marketing_info(&self) -> Result<MarketingInfoResponse, CwEnvError>
fn marketing_info(&self) -> Result<MarketingInfoResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::MarketingInfo variant
Sourcefn download_logo(&self) -> Result<DownloadLogoResponse, CwEnvError>
fn download_logo(&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.