Struct dao_interface::msg::InstantiateMsg
source · pub struct InstantiateMsg {
pub admin: Option<String>,
pub name: String,
pub description: String,
pub image_url: Option<String>,
pub automatically_add_cw20s: bool,
pub automatically_add_cw721s: bool,
pub voting_module_instantiate_info: ModuleInstantiateInfo,
pub proposal_modules_instantiate_info: Vec<ModuleInstantiateInfo>,
pub initial_items: Option<Vec<InitialItem>>,
pub dao_uri: Option<String>,
}Fields§
§admin: Option<String>Optional Admin with the ability to execute DAO messages directly. Useful for building SubDAOs controlled by a parent DAO. If no admin is specified the contract is set as its own admin so that the admin may be updated later by governance.
name: StringThe name of the core contract.
description: StringA description of the core contract.
image_url: Option<String>An image URL to describe the core module contract.
automatically_add_cw20s: boolIf true the contract will automatically add received cw20 tokens to its treasury.
automatically_add_cw721s: boolIf true the contract will automatically add received cw721 tokens to its treasury.
voting_module_instantiate_info: ModuleInstantiateInfoInstantiate information for the core contract’s voting power module.
proposal_modules_instantiate_info: Vec<ModuleInstantiateInfo>Instantiate information for the core contract’s proposal modules. NOTE: the pre-propose-base package depends on it being the case that the core module instantiates its proposal module.
initial_items: Option<Vec<InitialItem>>The items to instantiate this DAO with. Items are arbitrary key-value pairs whose contents are controlled by governance.
It is an error to provide two items with the same key.
dao_uri: Option<String>Implements the DAO Star standard: https://daostar.one/EIP
Trait Implementations§
source§impl Clone for InstantiateMsg
impl Clone for InstantiateMsg
source§fn clone(&self) -> InstantiateMsg
fn clone(&self) -> InstantiateMsg
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InstantiateMsg
impl Debug for InstantiateMsg
source§impl<'de> Deserialize<'de> for InstantiateMsg
impl<'de> Deserialize<'de> for InstantiateMsg
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 InstantiateMsg
impl JsonSchema for InstantiateMsg
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl PartialEq for InstantiateMsg
impl PartialEq for InstantiateMsg
source§fn eq(&self, other: &InstantiateMsg) -> bool
fn eq(&self, other: &InstantiateMsg) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for InstantiateMsg
impl Serialize for InstantiateMsg
impl StructuralPartialEq for InstantiateMsg
Auto Trait Implementations§
impl RefUnwindSafe for InstantiateMsg
impl Send for InstantiateMsg
impl Sync for InstantiateMsg
impl Unpin for InstantiateMsg
impl UnwindSafe for InstantiateMsg
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more