pub enum ExecuteMsg<T = Empty>{
Execute {
msgs: Vec<CosmosMsg<T>>,
},
Freeze {},
UpdateAdmins {
admins: Vec<String>,
},
IncreaseAllowance {
spender: String,
amount: Coin,
expires: Option<Expiration>,
},
DecreaseAllowance {
spender: String,
amount: Coin,
expires: Option<Expiration>,
},
SetPermissions {
spender: String,
permissions: Permissions,
},
}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
IncreaseAllowance
Add an allowance to a given subkey (subkey must not be admin)
DecreaseAllowance
Decreases an allowance for a given subkey (subkey must not be admin)
SetPermissions
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 duplicate 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(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<T> PartialEq for ExecuteMsg<T>
impl<T> PartialEq for ExecuteMsg<T>
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> Freeze for ExecuteMsg<T>
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more