pub enum QueryMsg {
Show 13 variants
Config {},
Proposal {
proposal_id: u64,
},
ListProposals {
start_after: Option<u64>,
limit: Option<u64>,
},
ReverseProposals {
start_before: Option<u64>,
limit: Option<u64>,
},
GetVote {
proposal_id: u64,
voter: String,
},
ListVotes {
proposal_id: u64,
start_after: Option<String>,
limit: Option<u64>,
},
ProposalCount {},
ProposalCreationPolicy {},
ProposalHooks {},
VoteHooks {},
Dao {},
Info {},
NextProposalId {},
}Variants§
Config
Gets the governance module’s config.
Proposal
Gets information about a proposal.
ListProposals
Lists all the proposals that have been cast in this module.
ReverseProposals
Lists all of the proposals that have been cast in this module in decending order of proposal ID.
GetVote
Returns a voters position on a proposal.
ListVotes
Lists all of the votes that have been cast on a proposal.
ProposalCount
Returns the number of proposals that have been created in this module.
ProposalCreationPolicy
Gets the current proposal creation policy for this module.
ProposalHooks
Lists all of the consumers of proposal hooks for this module.
VoteHooks
Lists all of the consumers of vote hooks for this module.
Dao
Returns the address of the DAO this module belongs to
Info
Returns contract version info
NextProposalId
Returns the proposal ID that will be assigned to the next proposal created.
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 schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 QueryResponses for QueryMsg
impl QueryResponses for QueryMsg
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas() -> Result<BTreeMap<String, RootSchema>, IntegrityError>
impl StructuralPartialEq for QueryMsg
Auto Trait Implementations§
impl Freeze for QueryMsg
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