Enum ftoken::ftoken_mod::msg::S721QueryMsg[][src]

pub enum S721QueryMsg {
    OwnerOf {
        token_id: String,
        viewer: Option<ViewerInfo>,
        include_expired: Option<bool>,
    },
    PrivateMetadata {
        token_id: String,
        viewer: Option<ViewerInfo>,
    },
    NftDossier {
        token_id: String,
        viewer: Option<ViewerInfo>,
        include_expired: Option<bool>,
    },
}
Expand description

Query messages to be sent to SNIP721 contract. Uses viewing key for cross contract query, rather than permits

Variants

OwnerOf

Fields

token_id: String
viewer: Option<ViewerInfo>

optional address and key requesting to view the token owner

include_expired: Option<bool>

optionally include expired Approvals in the response list. If ommitted or false, expired Approvals will be filtered out of the response

from snip721 contract display the owner of the specified token if authorized to view it. If the requester is also the token’s owner, the response will also include a list of any addresses that can transfer this token. The transfer approval list is for CW721 compliance, but the NftDossier query will be more complete by showing viewing approvals as well

PrivateMetadata

Fields

token_id: String
viewer: Option<ViewerInfo>

optional address and key requesting to view the private metadata

displays the private metadata if permitted to view it

NftDossier

Fields

token_id: String
viewer: Option<ViewerInfo>

optional address and key requesting to view the token information

include_expired: Option<bool>

optionally include expired Approvals in the response list. If ommitted or false, expired Approvals will be filtered out of the response

displays all the information about a token that the viewer has permission to see. This may include the owner, the public metadata, the private metadata, royalty information, mint run information, whether the token is unwrapped, whether the token is transferable, and the token and inventory approvals

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

pad the message to blocks of this size

Returns StdResult, where T is the type defining the query response Read more

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.