#[repr(u8)]pub enum MetadataPointerInstruction {
Initialize = 0,
Update = 1,
}
Expand description
Metadata pointer extension instructions
Variants§
Initialize = 0
Initialize a new mint with a metadata pointer
Fails if the mint has already been initialized, so must be called before
InitializeMint
.
The mint must have exactly enough space allocated for the base mint (82 bytes), plus 83 bytes of padding, 1 byte reserved for the account type, then space required for this extension, plus any others.
Accounts expected by this instruction:
[writable]
The mint to initialize.
Data expected by this instruction:
crate::extension::metadata_pointer::instruction::InitializeInstructionData
Update = 1
Update the metadata pointer address. Only supported for mints that
include the MetadataPointer
extension.
Accounts expected by this instruction:
- Single authority
[writable]
The mint.[signer]
The metadata pointer authority.
- Multisignature authority
[writable]
The mint.[]
The mint’s metadata pointer authority.- ..2+M
[signer]
M signer accounts.
Data expected by this instruction:
crate::extension::metadata_pointer::instruction::UpdateInstructionData
Trait Implementations§
source§impl Clone for MetadataPointerInstruction
impl Clone for MetadataPointerInstruction
source§fn clone(&self) -> MetadataPointerInstruction
fn clone(&self) -> MetadataPointerInstruction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetadataPointerInstruction
impl Debug for MetadataPointerInstruction
source§impl From<MetadataPointerInstruction> for u8
impl From<MetadataPointerInstruction> for u8
source§fn from(enum_value: MetadataPointerInstruction) -> Self
fn from(enum_value: MetadataPointerInstruction) -> Self
source§impl PartialEq for MetadataPointerInstruction
impl PartialEq for MetadataPointerInstruction
source§fn eq(&self, other: &MetadataPointerInstruction) -> bool
fn eq(&self, other: &MetadataPointerInstruction) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for MetadataPointerInstruction
impl TryFrom<u8> for MetadataPointerInstruction
§type Error = TryFromPrimitiveError<MetadataPointerInstruction>
type Error = TryFromPrimitiveError<MetadataPointerInstruction>
source§impl TryFromPrimitive for MetadataPointerInstruction
impl TryFromPrimitive for MetadataPointerInstruction
type Primitive = u8
type Error = TryFromPrimitiveError<MetadataPointerInstruction>
const NAME: &'static str = "MetadataPointerInstruction"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for MetadataPointerInstruction
impl StructuralPartialEq for MetadataPointerInstruction
Auto Trait Implementations§
impl Freeze for MetadataPointerInstruction
impl RefUnwindSafe for MetadataPointerInstruction
impl Send for MetadataPointerInstruction
impl Sync for MetadataPointerInstruction
impl Unpin for MetadataPointerInstruction
impl UnwindSafe for MetadataPointerInstruction
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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