pub enum ExecuteMsg {
AddMetadata {
meta_info: MetaInfo,
attributes: Vec<Trait>,
},
LinkMetadata {
token_id: u32,
metadata_id: Option<u32>,
},
UnlinkMetadata {
token_id: u32,
},
UpdateMetaInfo {
raw_metadata: bool,
id: u32,
meta_info: MetaInfo,
},
AddAttribute {
raw_metadata: bool,
id: u32,
attribute: Trait,
},
UpdateAttribute {
raw_metadata: bool,
id: u32,
attribute: Trait,
},
RemoveAttribute {
raw_metadata: bool,
id: u32,
trait_type: String,
},
UpdateOperators {
addrs: Vec<String>,
},
}
Variants§
AddMetadata
Admin message.
Add token metadata information.
LinkMetadata
Admin message.
Link a token id to a metadata id.
If metadata id is None
, then the token id will be used as metadata id.
UnlinkMetadata
Admin message.
Unlink metadata from a token id.
UpdateMetaInfo
Admin message.
Update the meta info for a metadata. Can be called for raw metadata id and linked metadata id.
AddAttribute
Admin message.
Add an attribute for a metadata. Can be called for raw metadata id and linked metadata id.
UpdateAttribute
Admin message.
Update an attribute for a metadata. Can be called for raw metadata id and linked metadata id.
RemoveAttribute
Admin message.
Remove a trait from a metadata’s attributes. Can be called for raw metadata id and linked metadata id.
UpdateOperators
Admin message.
Update the operators of this contract.
Trait Implementations§
source§impl Clone for ExecuteMsg
impl Clone for ExecuteMsg
source§fn clone(&self) -> ExecuteMsg
fn clone(&self) -> ExecuteMsg
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 Debug for ExecuteMsg
impl Debug for ExecuteMsg
source§impl<'de> Deserialize<'de> for ExecuteMsg
impl<'de> Deserialize<'de> for ExecuteMsg
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 ExecuteMsg
impl JsonSchema for ExecuteMsg
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. 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 PartialEq<ExecuteMsg> for ExecuteMsg
impl PartialEq<ExecuteMsg> for ExecuteMsg
source§fn eq(&self, other: &ExecuteMsg) -> bool
fn eq(&self, other: &ExecuteMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.