#[repr(u8)]pub enum GroupPointerInstruction {
Initialize = 0,
Update = 1,
}
Expand description
Group pointer extension instructions
Variants§
Initialize = 0
Initialize a new mint with a group 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::group_pointer::instruction::InitializeInstructionData
Update = 1
Update the group pointer address. Only supported for mints that
include the GroupPointer
extension.
Accounts expected by this instruction:
- Single authority
[writable]
The mint.[signer]
The group pointer authority.
- Multisignature authority
[writable]
The mint.[]
The mint’s group pointer authority.- ..2+M
[signer]
M signer accounts.
Data expected by this instruction:
crate::extension::group_pointer::instruction::UpdateInstructionData
Trait Implementations§
source§impl Clone for GroupPointerInstruction
impl Clone for GroupPointerInstruction
source§fn clone(&self) -> GroupPointerInstruction
fn clone(&self) -> GroupPointerInstruction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GroupPointerInstruction
impl Debug for GroupPointerInstruction
source§impl From<GroupPointerInstruction> for u8
impl From<GroupPointerInstruction> for u8
source§fn from(enum_value: GroupPointerInstruction) -> Self
fn from(enum_value: GroupPointerInstruction) -> Self
Converts to this type from the input type.
source§impl PartialEq for GroupPointerInstruction
impl PartialEq for GroupPointerInstruction
source§fn eq(&self, other: &GroupPointerInstruction) -> bool
fn eq(&self, other: &GroupPointerInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for GroupPointerInstruction
impl TryFrom<u8> for GroupPointerInstruction
§type Error = TryFromPrimitiveError<GroupPointerInstruction>
type Error = TryFromPrimitiveError<GroupPointerInstruction>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for GroupPointerInstruction
impl TryFromPrimitive for GroupPointerInstruction
type Primitive = u8
type Error = TryFromPrimitiveError<GroupPointerInstruction>
const NAME: &'static str = "GroupPointerInstruction"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for GroupPointerInstruction
impl StructuralPartialEq for GroupPointerInstruction
Auto Trait Implementations§
impl RefUnwindSafe for GroupPointerInstruction
impl Send for GroupPointerInstruction
impl Sync for GroupPointerInstruction
impl Unpin for GroupPointerInstruction
impl UnwindSafe for GroupPointerInstruction
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