Enum cw3::Cw3QueryMsg
source · [−]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
Fields
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
Fields
proposal_id: u64Returns 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
Fields
address: StringVoter extension: Returns VoterResponse
ListVoters
ListVoters extension: Returns VoterListResponse
Trait Implementations
sourceimpl Clone for Cw3QueryMsg
impl Clone for Cw3QueryMsg
sourcefn clone(&self) -> Cw3QueryMsg
fn clone(&self) -> Cw3QueryMsg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Cw3QueryMsg
impl Debug for Cw3QueryMsg
sourceimpl<'de> Deserialize<'de> for Cw3QueryMsg
impl<'de> Deserialize<'de> for Cw3QueryMsg
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for Cw3QueryMsg
impl JsonSchema for Cw3QueryMsg
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
sourceimpl PartialEq<Cw3QueryMsg> for Cw3QueryMsg
impl PartialEq<Cw3QueryMsg> for Cw3QueryMsg
sourcefn eq(&self, other: &Cw3QueryMsg) -> bool
fn eq(&self, other: &Cw3QueryMsg) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Cw3QueryMsg) -> bool
fn ne(&self, other: &Cw3QueryMsg) -> bool
This method tests for !=.
sourceimpl Serialize for Cw3QueryMsg
impl Serialize for Cw3QueryMsg
impl StructuralPartialEq for Cw3QueryMsg
Auto Trait Implementations
impl RefUnwindSafe for Cw3QueryMsg
impl Send for Cw3QueryMsg
impl Sync for Cw3QueryMsg
impl Unpin for Cw3QueryMsg
impl UnwindSafe for Cw3QueryMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more