Enum ftoken::ftoken_mod::msg::S721HandleMsg [−][src]
pub enum S721HandleMsg {
SetMetadata {
token_id: String,
public_metadata: Option<Metadata>,
private_metadata: Option<Metadata>,
padding: Option<String>,
},
Reveal {
token_id: String,
padding: Option<String>,
},
MakeOwnershipPrivate {
padding: Option<String>,
},
SetGlobalApproval {
token_id: Option<String>,
view_owner: Option<AccessLevel>,
view_private_metadata: Option<AccessLevel>,
expires: Option<Expiration>,
padding: Option<String>,
},
SetWhitelistedApproval {
address: HumanAddr,
token_id: Option<String>,
view_owner: Option<AccessLevel>,
view_private_metadata: Option<AccessLevel>,
transfer: Option<AccessLevel>,
expires: Option<Expiration>,
padding: Option<String>,
},
}
Expand description
List of messages that is allowed to be sent to underlying NFT
Variants
SetMetadata
Fields
token_id: String
id of the token whose metadata should be updated
public_metadata: Option<Metadata>
the optional new public metadata
private_metadata: Option<Metadata>
the optional new private metadata
set the public and/or private metadata. This can be called by either the token owner or a valid minter if they have been given this power by the appropriate config values
Reveal
Fields
token_id: String
id of the token to unwrap
Reveal the private metadata of a sealed token and mark the token as having been unwrapped
MakeOwnershipPrivate
if a contract was instantiated to make ownership public by default, this will allow an address to make the ownership of their tokens private. The address can still use SetGlobalApproval to make ownership public either inventory-wide or for a specific token
SetGlobalApproval
Fields
view_owner: Option<AccessLevel>
optional permission level for viewing the owner
view_private_metadata: Option<AccessLevel>
optional permission level for viewing private metadata
expires: Option<Expiration>
optional expiration
add/remove approval(s) that whitelist everyone (makes public)
SetWhitelistedApproval
Fields
view_owner: Option<AccessLevel>
optional permission level for viewing the owner
view_private_metadata: Option<AccessLevel>
optional permission level for viewing private metadata
transfer: Option<AccessLevel>
optional permission level for transferring
expires: Option<Expiration>
optional expiration
add/remove approval(s) for a specific address on the token(s) you own. Any permissions that are omitted will keep the current permission setting for that whitelist address
Trait Implementations
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
The name of the generated JSON Schema. Read more
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 more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for S721HandleMsg
impl Send for S721HandleMsg
impl Sync for S721HandleMsg
impl Unpin for S721HandleMsg
impl UnwindSafe for S721HandleMsg
Blanket Implementations
Mutably borrows from an owned value. Read more