pub struct NftDossier {
    pub owner: Option<HumanAddr>,
    pub public_metadata: Option<Metadata>,
    pub private_metadata: Option<Metadata>,
    pub display_private_metadata_error: Option<String>,
    pub owner_is_public: bool,
    pub public_ownership_expiration: Option<Expiration>,
    pub private_metadata_is_public: bool,
    pub private_metadata_is_public_expiration: Option<Expiration>,
    pub token_approvals: Option<Vec<Snip721Approval>>,
    pub inventory_approvals: Option<Vec<Snip721Approval>>,
}
Expand description

response of NftDossier

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, and the token and inventory approvals

Fields

owner: Option<HumanAddr>

owner of the token if permitted to view it

public_metadata: Option<Metadata>

the token’s public metadata

private_metadata: Option<Metadata>

the token’s private metadata if permitted to view it

display_private_metadata_error: Option<String>

description of why private metadata is not displayed (if applicable)

owner_is_public: bool

true if the owner is publicly viewable

public_ownership_expiration: Option<Expiration>

expiration of public display of ownership (if applicable)

private_metadata_is_public: bool

true if private metadata is publicly viewable

private_metadata_is_public_expiration: Option<Expiration>

expiration of public display of private metadata (if applicable)

token_approvals: Option<Vec<Snip721Approval>>

approvals for this token (only viewable if queried by the owner)

inventory_approvals: Option<Vec<Snip721Approval>>

approvals that apply to this token because they apply to all of the owner’s tokens (only viewable if queried by the owner)

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.