Struct secret_toolkit_snip721::query::NftDossier
source · [−]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
sourceimpl Clone for NftDossier
impl Clone for NftDossier
sourcefn clone(&self) -> NftDossier
fn clone(&self) -> NftDossier
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NftDossier
impl Debug for NftDossier
sourceimpl<'de> Deserialize<'de> for NftDossier
impl<'de> Deserialize<'de> for NftDossier
sourcefn 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
sourceimpl JsonSchema for NftDossier
impl JsonSchema for NftDossier
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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
sourceimpl PartialEq<NftDossier> for NftDossier
impl PartialEq<NftDossier> for NftDossier
sourcefn eq(&self, other: &NftDossier) -> bool
fn eq(&self, other: &NftDossier) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NftDossier) -> bool
fn ne(&self, other: &NftDossier) -> bool
This method tests for !=
.
sourceimpl Serialize for NftDossier
impl Serialize for NftDossier
impl StructuralPartialEq for NftDossier
Auto Trait Implementations
impl RefUnwindSafe for NftDossier
impl Send for NftDossier
impl Sync for NftDossier
impl Unpin for NftDossier
impl UnwindSafe for NftDossier
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more