pub struct InitializeMetadataPointerData<'a> {
pub authority: Option<&'a Pubkey>,
pub metadata: &'a Pubkey,
}Expand description
Data required to initialize the metadata pointer extension, which is used to add descriptive information to a mint.
Fields§
Who has authority to update the metadata pointer. If None, the metadata cannot be modified.
Some(&Pubkey::default()) is analogous to None in this context.
metadata: &'a PubkeyWhere the metadata is stored.
Some(&Pubkey::default()) is analogous to None in this context.
§Notes
The initialize metadata pointer instruction actually takes an optional metadata account, where if both the authority and metadata pubkeys are None, then the Token program will revert because at least one of these values must be present. So if you want to initialize the metadata pointer, this data must be specified.
Trait Implementations§
Source§impl<'a> Clone for InitializeMetadataPointerData<'a>
impl<'a> Clone for InitializeMetadataPointerData<'a>
Source§impl<'a> Debug for InitializeMetadataPointerData<'a>
impl<'a> Debug for InitializeMetadataPointerData<'a>
impl<'a> Eq for InitializeMetadataPointerData<'a>
Source§impl<'a> PartialEq for InitializeMetadataPointerData<'a>
impl<'a> PartialEq for InitializeMetadataPointerData<'a>
impl<'a> StructuralPartialEq for InitializeMetadataPointerData<'a>
Auto Trait Implementations§
impl<'a> Freeze for InitializeMetadataPointerData<'a>
impl<'a> RefUnwindSafe for InitializeMetadataPointerData<'a>
impl<'a> Send for InitializeMetadataPointerData<'a>
impl<'a> Sync for InitializeMetadataPointerData<'a>
impl<'a> Unpin for InitializeMetadataPointerData<'a>
impl<'a> UnsafeUnpin for InitializeMetadataPointerData<'a>
impl<'a> UnwindSafe for InitializeMetadataPointerData<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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