pub enum ExecuteMsg<T, E> {
Show 13 variants
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 {
token_id: String,
owner: String,
token_uri: Option<String>,
extension: T,
},
Burn {
token_id: String,
},
Extension {
msg: E,
},
UpdateCollectionInfo {
collection_info: UpdateCollectionInfoMsg<RoyaltyInfoResponse>,
},
UpdateStartTradingTime(Option<Timestamp>),
FreezeCollectionInfo,
UpdateOwnership(Action),
}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
Mint a new NFT, can only be called by the contract minter
Fields
token_uri: Option<String>Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema
extension: TAny custom extension used by this contract
Burn
Burn an NFT the sender has access to
Extension
Extension msg
Fields
msg: EUpdateCollectionInfo
Update specific collection info fields
Fields
collection_info: UpdateCollectionInfoMsg<RoyaltyInfoResponse>UpdateStartTradingTime(Option<Timestamp>)
Called by the minter to update trading start time
FreezeCollectionInfo
UpdateOwnership(Action)
Update the contract’s ownership. The action to be provided
can be either to propose transferring ownership to an account,
accept a pending ownership transfer, or renounce the ownership
permanently.
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>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more