Enum nft_server::open_sea::OpenSeaAttributeValue
source · [−]pub enum OpenSeaAttributeValue {
String {
value: String,
},
Integer {
value: i64,
display_type: Option<OpenSeaDisplayType>,
max_value: Option<i64>,
},
Float {
value: f64,
display_type: Option<OpenSeaDisplayType>,
max_value: Option<f64>,
},
}Expand description
OpenSea attribute value types.
See OpenSea documentation for examples
Variants
String
Fields
value: StringThe value
A String attribute value
Integer
An Integer with display type and max value
Float
A Float with display type and max value
Trait Implementations
sourceimpl Clone for OpenSeaAttributeValue
impl Clone for OpenSeaAttributeValue
sourcefn clone(&self) -> OpenSeaAttributeValue
fn clone(&self) -> OpenSeaAttributeValue
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 moresourceimpl Debug for OpenSeaAttributeValue
impl Debug for OpenSeaAttributeValue
sourceimpl<'de> Deserialize<'de> for OpenSeaAttributeValue
impl<'de> Deserialize<'de> for OpenSeaAttributeValue
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<T> From<T> for OpenSeaAttributeValuewhere
T: AsRef<str>,
impl<T> From<T> for OpenSeaAttributeValuewhere
T: AsRef<str>,
sourceimpl Serialize for OpenSeaAttributeValue
impl Serialize for OpenSeaAttributeValue
Auto Trait Implementations
impl RefUnwindSafe for OpenSeaAttributeValue
impl Send for OpenSeaAttributeValue
impl Sync for OpenSeaAttributeValue
impl Unpin for OpenSeaAttributeValue
impl UnwindSafe for OpenSeaAttributeValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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