pub struct MetadataMut<'a> {
pub symbol: U8PrefixStrMut<'a>,
pub description: U8PrefixStrMut<'a>,
pub uri: U8PrefixStrMut<'a>,
pub image_uri: U8PrefixStrMut<'a>,
}Expand description
Mutable reference to Metadata extension.
This type is used to modify the Metadata extension. Note that the symbol, description and uri
fields are mutable references to the original bytes, but cannot increase in size.
Fields§
§symbol: U8PrefixStrMut<'a>Symbol for the asset.
description: U8PrefixStrMut<'a>Description of the asset.
uri: U8PrefixStrMut<'a>“Pointer” URI for external metadata.
image_uri: U8PrefixStrMut<'a>“Pointer” URI for external image.
Trait Implementations§
Source§impl<'a> ExtensionDataMut<'a> for MetadataMut<'a>
impl<'a> ExtensionDataMut<'a> for MetadataMut<'a>
const TYPE: ExtensionType = ExtensionType::Metadata
fn from_bytes_mut(bytes: &'a mut [u8]) -> MetadataMut<'a>
Source§impl Lifecycle for MetadataMut<'_>
impl Lifecycle for MetadataMut<'_>
Auto Trait Implementations§
impl<'a> !UnwindSafe for MetadataMut<'a>
impl<'a> Freeze for MetadataMut<'a>
impl<'a> RefUnwindSafe for MetadataMut<'a>
impl<'a> Send for MetadataMut<'a>
impl<'a> Sync for MetadataMut<'a>
impl<'a> Unpin for MetadataMut<'a>
impl<'a> UnsafeUnpin for MetadataMut<'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