Struct nft_server::open_sea::OpenSeaAttribute
source · [−]pub struct OpenSeaAttribute {
pub trait_type: Option<String>,
pub value: OpenSeaAttributeValue,
}Expand description
An OpenSea-style NFT attribute. Optionally includes an attribute name (the
trait_type), as well as the OpenSeaAttributeValue/
Fields
trait_type: Option<String>The attribute name (if any)
value: OpenSeaAttributeValueThe attribute value
Implementations
sourceimpl OpenSeaAttribute
impl OpenSeaAttribute
Trait Implementations
sourceimpl Clone for OpenSeaAttribute
impl Clone for OpenSeaAttribute
sourcefn clone(&self) -> OpenSeaAttribute
fn clone(&self) -> OpenSeaAttribute
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 OpenSeaAttribute
impl Debug for OpenSeaAttribute
sourceimpl<'de> Deserialize<'de> for OpenSeaAttribute
impl<'de> Deserialize<'de> for OpenSeaAttribute
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 Serialize for OpenSeaAttribute
impl Serialize for OpenSeaAttribute
Auto Trait Implementations
impl RefUnwindSafe for OpenSeaAttribute
impl Send for OpenSeaAttribute
impl Sync for OpenSeaAttribute
impl Unpin for OpenSeaAttribute
impl UnwindSafe for OpenSeaAttribute
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