Enum cw_proposal_single::msg::QueryMsg
source · pub enum QueryMsg {
Config {},
Proposal {
proposal_id: u64,
},
ListProposals {
start_after: Option<u64>,
limit: Option<u64>,
},
ReverseProposals {
start_before: Option<u64>,
limit: Option<u64>,
},
ProposalCount {},
Vote {
proposal_id: u64,
voter: String,
},
ListVotes {
proposal_id: u64,
start_after: Option<String>,
limit: Option<u64>,
},
ProposalHooks {},
VoteHooks {},
Info {},
}Variants§
Config
Fields
Gets the governance module’s config. Returns state::Config.
Proposal
Gets information about a proposal. Returns
proposals::Proposal.
ListProposals
ReverseProposals
ProposalCount
Fields
Vote
ListVotes
ProposalHooks
Fields
VoteHooks
Fields
Info
Fields
Trait Implementations§
source§impl<'de> Deserialize<'de> for QueryMsg
impl<'de> Deserialize<'de> for QueryMsg
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for QueryMsg
impl JsonSchema for QueryMsg
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn 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 moresource§impl PartialEq<QueryMsg> for QueryMsg
impl PartialEq<QueryMsg> for QueryMsg
impl Eq for QueryMsg
impl StructuralEq for QueryMsg
impl StructuralPartialEq for QueryMsg
Auto Trait Implementations§
impl RefUnwindSafe for QueryMsg
impl Send for QueryMsg
impl Sync for QueryMsg
impl Unpin for QueryMsg
impl UnwindSafe for QueryMsg
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
Mutably borrows from an owned value. Read more