Struct sg721::CollectionInfo
source · pub struct CollectionInfo<T> {
pub creator: String,
pub description: String,
pub image: String,
pub external_link: Option<String>,
pub explicit_content: Option<bool>,
pub start_trading_time: Option<Timestamp>,
pub royalty_info: Option<T>,
}Fields§
§creator: String§description: String§image: String§external_link: Option<String>§explicit_content: Option<bool>§start_trading_time: Option<Timestamp>§royalty_info: Option<T>Trait Implementations§
source§impl<T: Clone> Clone for CollectionInfo<T>
impl<T: Clone> Clone for CollectionInfo<T>
source§fn clone(&self) -> CollectionInfo<T>
fn clone(&self) -> CollectionInfo<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 CollectionInfo<T>
impl<T: Debug> Debug for CollectionInfo<T>
source§impl<'de, T> Deserialize<'de> for CollectionInfo<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CollectionInfo<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 CollectionInfo<T>
impl<T: JsonSchema> JsonSchema for CollectionInfo<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
§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<CollectionInfo<T>> for CollectionInfo<T>
impl<T: PartialEq> PartialEq<CollectionInfo<T>> for CollectionInfo<T>
source§fn eq(&self, other: &CollectionInfo<T>) -> bool
fn eq(&self, other: &CollectionInfo<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.