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§
Trait Implementations§
Source§impl Clone for AttributeEntry
impl Clone for AttributeEntry
Source§fn clone(&self) -> AttributeEntry
fn clone(&self) -> AttributeEntry
Returns a duplicate 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 Debug for AttributeEntry
impl Debug for AttributeEntry
Source§impl Hash for AttributeEntry
impl Hash for AttributeEntry
Source§impl PartialEq for AttributeEntry
impl PartialEq for AttributeEntry
impl Eq for AttributeEntry
impl StructuralPartialEq for AttributeEntry
Auto Trait Implementations§
impl Freeze for AttributeEntry
impl RefUnwindSafe for AttributeEntry
impl Send for AttributeEntry
impl Sync for AttributeEntry
impl Unpin for AttributeEntry
impl UnwindSafe for AttributeEntry
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