Struct cw721::NftInfoResponse
source · pub struct NftInfoResponse<T> {
pub token_uri: Option<String>,
pub extension: T,
}
Fields§
§token_uri: Option<String>
Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema
extension: T
You can add any custom metadata here when you extend cw721-base
Trait Implementations§
source§impl<T: Clone> Clone for NftInfoResponse<T>
impl<T: Clone> Clone for NftInfoResponse<T>
source§fn clone(&self) -> NftInfoResponse<T>
fn clone(&self) -> NftInfoResponse<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for NftInfoResponse<T>
impl<T: Debug> Debug for NftInfoResponse<T>
source§impl<'de, T> Deserialize<'de> for NftInfoResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for NftInfoResponse<T>where T: Deserialize<'de>,
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: JsonSchema> JsonSchema for NftInfoResponse<T>
impl<T: JsonSchema> JsonSchema for NftInfoResponse<T>
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn 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 moresource§impl<T: PartialEq> PartialEq<NftInfoResponse<T>> for NftInfoResponse<T>
impl<T: PartialEq> PartialEq<NftInfoResponse<T>> for NftInfoResponse<T>
source§fn eq(&self, other: &NftInfoResponse<T>) -> bool
fn eq(&self, other: &NftInfoResponse<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for NftInfoResponse<T>where
T: Serialize,
impl<T> Serialize for NftInfoResponse<T>where T: Serialize,
impl<T> StructuralPartialEq for NftInfoResponse<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for NftInfoResponse<T>where T: RefUnwindSafe,
impl<T> Send for NftInfoResponse<T>where T: Send,
impl<T> Sync for NftInfoResponse<T>where T: Sync,
impl<T> Unpin for NftInfoResponse<T>where T: Unpin,
impl<T> UnwindSafe for NftInfoResponse<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more