pub trait QueryMsgFns<Chain: QueryHandler + ChainState, CwOrchQueryMsgType>: CwOrchQuery<Chain, QueryMsg = CwOrchQueryMsgType>{
// Provided methods
fn threshold(&self) -> Result<ThresholdResponse, CwEnvError> { ... }
fn proposal(&self, proposal_id: u64) -> Result<ProposalResponse, CwEnvError> { ... }
fn list_proposals(
&self,
limit: Option<u32>,
start_after: Option<u64>,
) -> Result<ProposalListResponse, CwEnvError> { ... }
fn reverse_proposals(
&self,
limit: Option<u32>,
start_before: Option<u64>,
) -> Result<ProposalListResponse, CwEnvError> { ... }
fn vote(
&self,
proposal_id: u64,
voter: impl Into<String>,
) -> Result<VoteResponse, CwEnvError> { ... }
fn list_votes(
&self,
proposal_id: u64,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<VoteListResponse, CwEnvError> { ... }
fn voter(
&self,
address: impl Into<String>,
) -> Result<VoterResponse, CwEnvError> { ... }
fn list_voters(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<VoterListResponse, CwEnvError> { ... }
fn config(&self) -> Result<Config, 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 threshold(&self) -> Result<ThresholdResponse, CwEnvError>
fn threshold(&self) -> Result<ThresholdResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Threshold variant
Sourcefn proposal(&self, proposal_id: u64) -> Result<ProposalResponse, CwEnvError>
fn proposal(&self, proposal_id: u64) -> Result<ProposalResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Proposal variant
Sourcefn list_proposals(
&self,
limit: Option<u32>,
start_after: Option<u64>,
) -> Result<ProposalListResponse, CwEnvError>
fn list_proposals( &self, limit: Option<u32>, start_after: Option<u64>, ) -> Result<ProposalListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListProposals variant
Sourcefn reverse_proposals(
&self,
limit: Option<u32>,
start_before: Option<u64>,
) -> Result<ProposalListResponse, CwEnvError>
fn reverse_proposals( &self, limit: Option<u32>, start_before: Option<u64>, ) -> Result<ProposalListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ReverseProposals variant
Sourcefn vote(
&self,
proposal_id: u64,
voter: impl Into<String>,
) -> Result<VoteResponse, CwEnvError>
fn vote( &self, proposal_id: u64, voter: impl Into<String>, ) -> Result<VoteResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Vote variant
Sourcefn list_votes(
&self,
proposal_id: u64,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<VoteListResponse, CwEnvError>
fn list_votes( &self, proposal_id: u64, limit: Option<u32>, start_after: Option<String>, ) -> Result<VoteListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListVotes variant
Sourcefn voter(&self, address: impl Into<String>) -> Result<VoterResponse, CwEnvError>
fn voter(&self, address: impl Into<String>) -> Result<VoterResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Voter variant
Sourcefn list_voters(
&self,
limit: Option<u32>,
start_after: Option<String>,
) -> Result<VoterListResponse, CwEnvError>
fn list_voters( &self, limit: Option<u32>, start_after: Option<String>, ) -> Result<VoterListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ListVoters variant
Sourcefn config(&self) -> Result<Config, CwEnvError>
fn config(&self) -> Result<Config, CwEnvError>
Automatically generated wrapper around QueryMsg::Config 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.