pub enum QueryMsg<QueryExt>where
QueryExt: JsonSchema,{
ProposalModule {},
Dao {},
Info {},
Config {},
DepositInfo {
proposal_id: u64,
},
CanPropose {
address: String,
},
ProposalSubmittedHooks {},
QueryExtension {
msg: QueryExt,
},
}Variants§
ProposalModule
Gets the proposal module that this pre propose module is
associated with. Returns Addr.
Dao
Gets the DAO (dao-dao-core) module this contract is associated
with. Returns Addr.
Info
Returns contract version info.
Config
Gets the module’s configuration.
DepositInfo
Gets the deposit info for the proposal identified by PROPOSAL_ID.
CanPropose
Returns whether or not the address can submit proposals.
ProposalSubmittedHooks
Returns list of proposal submitted hooks.
QueryExtension
Extension for queries. The default implementation will do
nothing if queried for will return Binary::default().
Fields
§
msg: QueryExtTrait Implementations§
Source§impl<'de, QueryExt> Deserialize<'de> for QueryMsg<QueryExt>where
QueryExt: JsonSchema + Deserialize<'de>,
impl<'de, QueryExt> Deserialize<'de> for QueryMsg<QueryExt>where
QueryExt: JsonSchema + Deserialize<'de>,
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<QueryExt> JsonSchema for QueryMsg<QueryExt>where
QueryExt: JsonSchema + JsonSchema,
impl<QueryExt> JsonSchema for QueryMsg<QueryExt>where
QueryExt: JsonSchema + JsonSchema,
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<QueryExt> QueryResponses for QueryMsg<QueryExt>where
QueryExt: JsonSchema + JsonSchema,
Available on non-WebAssembly only.
impl<QueryExt> QueryResponses for QueryMsg<QueryExt>where
QueryExt: JsonSchema + JsonSchema,
Available on non-WebAssembly only.
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas() -> Result<BTreeMap<String, RootSchema>, IntegrityError>
impl<QueryExt> StructuralPartialEq for QueryMsg<QueryExt>where
QueryExt: JsonSchema + PartialEq,
Auto Trait Implementations§
impl<QueryExt> Freeze for QueryMsg<QueryExt>where
QueryExt: Freeze,
impl<QueryExt> RefUnwindSafe for QueryMsg<QueryExt>where
QueryExt: RefUnwindSafe,
impl<QueryExt> Send for QueryMsg<QueryExt>where
QueryExt: Send,
impl<QueryExt> Sync for QueryMsg<QueryExt>where
QueryExt: Sync,
impl<QueryExt> Unpin for QueryMsg<QueryExt>where
QueryExt: Unpin,
impl<QueryExt> UnsafeUnpin for QueryMsg<QueryExt>where
QueryExt: UnsafeUnpin,
impl<QueryExt> UnwindSafe for QueryMsg<QueryExt>where
QueryExt: UnwindSafe,
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