pub struct Metadata<'a> {
pub symbol: U8PrefixStr<'a>,
pub description: U8PrefixStr<'a>,
pub uri: U8PrefixStr<'a>,
pub image_uri: U8PrefixStr<'a>,
}Expand description
Extension to add metadata values to an asset.
This extension is used to add Token Metadata’s commonly used symbol, description, uri
and image_uri values to an asset.
Fields§
§symbol: U8PrefixStr<'a>Symbol for the asset.
description: U8PrefixStr<'a>Description of the asset.
uri: U8PrefixStr<'a>“Pointer” URI for external metadata.
image_uri: U8PrefixStr<'a>“Pointer” URI for external image.
Trait Implementations§
Source§impl<'a> ExtensionBuilder<'a, Metadata<'a>> for MetadataBuilder
impl<'a> ExtensionBuilder<'a, Metadata<'a>> for MetadataBuilder
Auto Trait Implementations§
impl<'a> Freeze for Metadata<'a>
impl<'a> RefUnwindSafe for Metadata<'a>
impl<'a> Send for Metadata<'a>
impl<'a> Sync for Metadata<'a>
impl<'a> Unpin for Metadata<'a>
impl<'a> UnsafeUnpin for Metadata<'a>
impl<'a> UnwindSafe for Metadata<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more