pub enum Cw3QueryMsg {
Threshold {},
Proposal {
proposal_id: u64,
},
ListProposals {
start_after: Option<u64>,
limit: Option<u32>,
},
ReverseProposals {
start_before: Option<u64>,
limit: Option<u32>,
},
Vote {
proposal_id: u64,
voter: String,
},
ListVotes {
proposal_id: u64,
start_after: Option<String>,
limit: Option<u32>,
},
Voter {
address: String,
},
ListVoters {
start_after: Option<String>,
limit: Option<u32>,
},
}
Variants§
Threshold
Returns the threshold rules that would be used for a new proposal that was
opened right now. The threshold rules do not change often, but the total_weight
in the response may easily differ from that used in previously opened proposals.
Returns ThresholdResponse.
Proposal
Returns details of the proposal state. Returns ProposalResponse.
ListProposals
Iterate over details of all proposals from oldest to newest. Returns ProposalListResponse
ReverseProposals
Iterate reverse over details of all proposals, this is useful to easily query only the most recent proposals (to get updates). Returns ProposalListResponse
Vote
Query the vote made by the given voter on proposal_id
. This should
return an error if there is no such proposal. It will return a None value
if the proposal exists but the voter did not vote. Returns VoteResponse
ListVotes
Iterate (with pagination) over all votes for this proposal. The ordering is arbitrary, unlikely to be sorted by address. But ordering is consistent and pagination from the end of each page will cover all votes for the proposal. Returns VoteListResponse
Voter
Voter extension: Returns VoterResponse
ListVoters
ListVoters extension: Returns VoterListResponse
Trait Implementations§
Source§impl Clone for Cw3QueryMsg
impl Clone for Cw3QueryMsg
Source§fn clone(&self) -> Cw3QueryMsg
fn clone(&self) -> Cw3QueryMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Cw3QueryMsg
impl Debug for Cw3QueryMsg
Source§impl<'de> Deserialize<'de> for Cw3QueryMsg
impl<'de> Deserialize<'de> for Cw3QueryMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Cw3QueryMsg
impl JsonSchema for Cw3QueryMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for Cw3QueryMsg
impl PartialEq for Cw3QueryMsg
Source§impl Serialize for Cw3QueryMsg
impl Serialize for Cw3QueryMsg
impl StructuralPartialEq for Cw3QueryMsg
Auto Trait Implementations§
impl Freeze for Cw3QueryMsg
impl RefUnwindSafe for Cw3QueryMsg
impl Send for Cw3QueryMsg
impl Sync for Cw3QueryMsg
impl Unpin for Cw3QueryMsg
impl UnwindSafe for Cw3QueryMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more