Enum erc_nft_metadata::AttributeEntry
source · [−]pub enum AttributeEntry {
String {
trait_type: String,
value: String,
},
Number {
trait_type: String,
value: u64,
display_type: Option<DisplayType>,
},
}Expand description
A key-value pair of attributes for an item.
Variants
String
Textual attribute.
Number
Fields
trait_type: StringName of the trait.
value: u64Value of the attribute.
display_type: Option<DisplayType>How the attribute should be displayed.
Numerical attribute.
Trait Implementations
sourceimpl Clone for AttributeEntry
impl Clone for AttributeEntry
sourcefn clone(&self) -> AttributeEntry
fn clone(&self) -> AttributeEntry
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 AttributeEntry
impl Debug for AttributeEntry
sourceimpl Hash for AttributeEntry
impl Hash for AttributeEntry
sourceimpl PartialEq<AttributeEntry> for AttributeEntry
impl PartialEq<AttributeEntry> for AttributeEntry
sourcefn eq(&self, other: &AttributeEntry) -> bool
fn eq(&self, other: &AttributeEntry) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AttributeEntry) -> bool
fn ne(&self, other: &AttributeEntry) -> bool
This method tests for !=.
impl Eq for AttributeEntry
impl StructuralEq for AttributeEntry
impl StructuralPartialEq for AttributeEntry
Auto Trait Implementations
impl RefUnwindSafe for AttributeEntry
impl Send for AttributeEntry
impl Sync for AttributeEntry
impl Unpin for AttributeEntry
impl UnwindSafe for AttributeEntry
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