Enum sg721::ExecuteMsg
source · pub enum ExecuteMsg<T, E> {
TransferNft {
recipient: String,
token_id: String,
},
SendNft {
contract: String,
token_id: String,
msg: Binary,
},
Approve {
spender: String,
token_id: String,
expires: Option<Expiration>,
},
Revoke {
spender: String,
token_id: String,
},
ApproveAll {
operator: String,
expires: Option<Expiration>,
},
RevokeAll {
operator: String,
},
Mint(MintMsg<T>),
Burn {
token_id: String,
},
Extension {
msg: E,
},
UpdateCollectionInfo {
collection_info: UpdateCollectionInfoMsg<RoyaltyInfoResponse>,
},
UpdateStartTradingTime(Option<Timestamp>),
FreezeCollectionInfo,
}Variants§
TransferNft
Transfer is a base message to move a token to another account without triggering actions
SendNft
Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.
Approve
Allows operator to transfer / send the token from the owner’s account. If expiration is set, then this allowance has a time/height limit
Revoke
Remove previously granted Approval
ApproveAll
Allows operator to transfer / send any token from the owner’s account. If expiration is set, then this allowance has a time/height limit
RevokeAll
Remove previously granted ApproveAll permission
Mint(MintMsg<T>)
Mint a new NFT, can only be called by the contract minter
Burn
Burn an NFT the sender has access to
Extension
Fields
§
msg: EExtension msg
UpdateCollectionInfo
Fields
§
collection_info: UpdateCollectionInfoMsg<RoyaltyInfoResponse>Update specific collection info fields
UpdateStartTradingTime(Option<Timestamp>)
Called by the minter to update trading start time
FreezeCollectionInfo
Trait Implementations§
source§impl<T: Clone, E: Clone> Clone for ExecuteMsg<T, E>
impl<T: Clone, E: Clone> Clone for ExecuteMsg<T, E>
source§fn clone(&self) -> ExecuteMsg<T, E>
fn clone(&self) -> ExecuteMsg<T, E>
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<'de, T, E> Deserialize<'de> for ExecuteMsg<T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, T, E> Deserialize<'de> for ExecuteMsg<T, E>where T: Deserialize<'de>, E: 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<T: JsonSchema, E: JsonSchema> JsonSchema for ExecuteMsg<T, E>
impl<T: JsonSchema, E: JsonSchema> JsonSchema for ExecuteMsg<T, E>
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<T: PartialEq, E: PartialEq> PartialEq<ExecuteMsg<T, E>> for ExecuteMsg<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq<ExecuteMsg<T, E>> for ExecuteMsg<T, E>
source§fn eq(&self, other: &ExecuteMsg<T, E>) -> bool
fn eq(&self, other: &ExecuteMsg<T, E>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.