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

padding: Option<String>

optional message length padding

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

padding: Option<String>

optional message length padding

Reveal the private metadata of a sealed token and mark the token as having been unwrapped

MakeOwnershipPrivate

Fields

padding: Option<String>

optional message length padding

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

token_id: Option<String>

optional token id to apply approval/revocation to

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

padding: Option<String>

optional message length padding

add/remove approval(s) that whitelist everyone (makes public)

SetWhitelistedApproval

Fields

address: HumanAddr

address being granted/revoked permission

token_id: Option<String>

optional token id to apply approval/revocation to

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

padding: Option<String>

optional message length padding

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.