Struct secret_toolkit_snip721::query::NftDossier
source · pub struct NftDossier {
pub owner: Option<String>,
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<String>
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§
source§impl Clone for NftDossier
impl Clone for NftDossier
source§fn clone(&self) -> NftDossier
fn clone(&self) -> NftDossier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NftDossier
impl Debug for NftDossier
source§impl<'de> Deserialize<'de> for NftDossier
impl<'de> Deserialize<'de> for NftDossier
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 JsonSchema for NftDossier
impl JsonSchema for NftDossier
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for NftDossier
impl PartialEq for NftDossier
source§fn eq(&self, other: &NftDossier) -> bool
fn eq(&self, other: &NftDossier) -> bool
self
and other
values to be equal, and is used
by ==
.