pub enum ExecuteMsg<T = Empty>{
Execute {
msgs: Vec<CosmosMsg<T>>,
},
Freeze {},
UpdateAdmins {
admins: Vec<String>,
},
}Variants§
Execute
Execute requests the contract to re-dispatch all these messages with the contract’s address as sender. Every implementation has it’s own logic to determine in
Freeze
Freeze will make a mutable contract immutable, must be called by an admin
UpdateAdmins
UpdateAdmins will change the admin set of the contract, must be called by an existing admin, and only works if the contract is mutable
Trait Implementations§
source§impl<T> Clone for ExecuteMsg<T>
impl<T> Clone for ExecuteMsg<T>
source§fn clone(&self) -> ExecuteMsg<T>
fn clone(&self) -> ExecuteMsg<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T> Debug for ExecuteMsg<T>
impl<T> Debug for ExecuteMsg<T>
source§impl<'de, T> Deserialize<'de> for ExecuteMsg<T>
impl<'de, T> Deserialize<'de> for ExecuteMsg<T>
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExecuteMsg<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ExecuteMsg<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> JsonSchema for ExecuteMsg<T>
impl<T> JsonSchema for ExecuteMsg<T>
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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<T> PartialEq for ExecuteMsg<T>
impl<T> PartialEq for ExecuteMsg<T>
source§fn eq(&self, other: &ExecuteMsg<T>) -> bool
fn eq(&self, other: &ExecuteMsg<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T> Serialize for ExecuteMsg<T>
impl<T> Serialize for ExecuteMsg<T>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> StructuralPartialEq for ExecuteMsg<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ExecuteMsg<T>where
T: RefUnwindSafe,
impl<T> Send for ExecuteMsg<T>where
T: Send,
impl<T> Sync for ExecuteMsg<T>where
T: Sync,
impl<T> Unpin for ExecuteMsg<T>where
T: Unpin,
impl<T> UnwindSafe for ExecuteMsg<T>where
T: UnwindSafe,
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>,
Casts
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 moresource§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