Trait abstract_cw3_flex_multisig::msg::QueryMsgFns
source · pub trait QueryMsgFns<Chain: CwEnv>: CwOrchQuery<Chain, QueryMsg = QueryMsg> {
// Provided methods
fn threshold(&self) -> Result<ThresholdResponse, CwOrchError> { ... }
fn proposal(
&self,
proposal_id: u64
) -> Result<ProposalResponse, CwOrchError> { ... }
fn list_proposals(
&self,
limit: Option<u32>,
start_after: Option<u64>
) -> Result<ProposalListResponse, CwOrchError> { ... }
fn reverse_proposals(
&self,
limit: Option<u32>,
start_before: Option<u64>
) -> Result<ProposalListResponse, CwOrchError> { ... }
fn vote(
&self,
proposal_id: u64,
voter: String
) -> Result<VoteResponse, CwOrchError> { ... }
fn list_votes(
&self,
proposal_id: u64,
limit: Option<u32>,
start_after: Option<String>
) -> Result<VoteListResponse, CwOrchError> { ... }
fn voter(&self, address: String) -> Result<VoterResponse, CwOrchError> { ... }
fn list_voters(
&self,
limit: Option<u32>,
start_after: Option<String>
) -> Result<VoterListResponse, CwOrchError> { ... }
fn config(&self) -> Result<Config, CwOrchError> { ... }
}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, CwOrchError>
fn threshold(&self) -> Result<ThresholdResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::Threshold variant
sourcefn proposal(&self, proposal_id: u64) -> Result<ProposalResponse, CwOrchError>
fn proposal(&self, proposal_id: u64) -> Result<ProposalResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::Proposal variant
sourcefn list_proposals(
&self,
limit: Option<u32>,
start_after: Option<u64>
) -> Result<ProposalListResponse, CwOrchError>
fn list_proposals( &self, limit: Option<u32>, start_after: Option<u64> ) -> Result<ProposalListResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::ListProposals variant
sourcefn reverse_proposals(
&self,
limit: Option<u32>,
start_before: Option<u64>
) -> Result<ProposalListResponse, CwOrchError>
fn reverse_proposals( &self, limit: Option<u32>, start_before: Option<u64> ) -> Result<ProposalListResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::ReverseProposals variant
sourcefn vote(
&self,
proposal_id: u64,
voter: String
) -> Result<VoteResponse, CwOrchError>
fn vote( &self, proposal_id: u64, voter: String ) -> Result<VoteResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::Vote variant
sourcefn list_votes(
&self,
proposal_id: u64,
limit: Option<u32>,
start_after: Option<String>
) -> Result<VoteListResponse, CwOrchError>
fn list_votes( &self, proposal_id: u64, limit: Option<u32>, start_after: Option<String> ) -> Result<VoteListResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::ListVotes variant
sourcefn voter(&self, address: String) -> Result<VoterResponse, CwOrchError>
fn voter(&self, address: String) -> Result<VoterResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::Voter variant
sourcefn list_voters(
&self,
limit: Option<u32>,
start_after: Option<String>
) -> Result<VoterListResponse, CwOrchError>
fn list_voters( &self, limit: Option<u32>, start_after: Option<String> ) -> Result<VoterListResponse, CwOrchError>
Automatically generated wrapper around QueryMsg::ListVoters variant
sourcefn config(&self) -> Result<Config, CwOrchError>
fn config(&self) -> Result<Config, CwOrchError>
Automatically generated wrapper around QueryMsg::Config variant
Object Safety§
This trait is not object safe.