pub trait AsyncQueryMsgFns<Chain: AsyncWasmQuerier + ChainState, CwOrchQueryMsgType: Sync>: AsyncCwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
// Provided methods
async fn threshold_async(&self) -> Result<ThresholdResponse, CwEnvError> { ... }
async fn proposal_async(
&self,
proposal_id: u64,
) -> Result<ProposalResponse, CwEnvError> { ... }
async fn list_proposals_async(
&self,
limit: Option<u32>,
start_after: Option<u64>,
) -> Result<ProposalListResponse, CwEnvError> { ... }
async fn reverse_proposals_async(
&self,
limit: Option<u32>,
start_before: Option<u64>,
) -> Result<ProposalListResponse, CwEnvError> { ... }
async fn vote_async(
&self,
proposal_id: u64,
voter: impl Into<String>,
) -> Result<VoteResponse, CwEnvError> { ... }
async fn list_votes_async(
&self,
proposal_id: u64,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<VoteListResponse, CwEnvError> { ... }
async fn voter_async(
&self,
address: impl Into<String>,
) -> Result<VoterResponse, CwEnvError> { ... }
async fn list_voters_async(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<VoterListResponse, 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 threshold_async(&self) -> Result<ThresholdResponse, CwEnvError>
async fn threshold_async(&self) -> Result<ThresholdResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Threshold variant
Sourceasync fn proposal_async(
&self,
proposal_id: u64,
) -> Result<ProposalResponse, CwEnvError>
async fn proposal_async( &self, proposal_id: u64, ) -> Result<ProposalResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Proposal variant
Sourceasync fn list_proposals_async(
&self,
limit: Option<u32>,
start_after: Option<u64>,
) -> Result<ProposalListResponse, CwEnvError>
async fn list_proposals_async( &self, limit: Option<u32>, start_after: Option<u64>, ) -> Result<ProposalListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListProposals variant
Sourceasync fn reverse_proposals_async(
&self,
limit: Option<u32>,
start_before: Option<u64>,
) -> Result<ProposalListResponse, CwEnvError>
async fn reverse_proposals_async( &self, limit: Option<u32>, start_before: Option<u64>, ) -> Result<ProposalListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ReverseProposals variant
Sourceasync fn vote_async(
&self,
proposal_id: u64,
voter: impl Into<String>,
) -> Result<VoteResponse, CwEnvError>
async fn vote_async( &self, proposal_id: u64, voter: impl Into<String>, ) -> Result<VoteResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Vote variant
Sourceasync fn list_votes_async(
&self,
proposal_id: u64,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<VoteListResponse, CwEnvError>
async fn list_votes_async( &self, proposal_id: u64, limit: Option<u32>, start_after: Option<String>, ) -> Result<VoteListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListVotes variant
Sourceasync fn voter_async(
&self,
address: impl Into<String>,
) -> Result<VoterResponse, CwEnvError>
async fn voter_async( &self, address: impl Into<String>, ) -> Result<VoterResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Voter variant
Sourceasync fn list_voters_async(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<VoterListResponse, CwEnvError>
async fn list_voters_async( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<VoterListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListVoters 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.