Enum spl_token_2022::extension::group_member_pointer::instruction::GroupMemberPointerInstruction
source · #[repr(u8)]pub enum GroupMemberPointerInstruction {
Initialize = 0,
Update = 1,
}
Expand description
Group member pointer extension instructions
Variants§
Initialize = 0
Initialize a new mint with a group member 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_member_pointer::instruction::InitializeInstructionData
Update = 1
Update the group member pointer address. Only supported for mints that
include the GroupMemberPointer
extension.
Accounts expected by this instruction:
- Single authority
[writable]
The mint.[signer]
The group member pointer authority.
- Multisignature authority
[writable]
The mint.[]
The group member pointer authority.- ..2+M
[signer]
M signer accounts.
Data expected by this instruction:
crate::extension::group_member_pointer::instruction::UpdateInstructionData
Trait Implementations§
source§impl Clone for GroupMemberPointerInstruction
impl Clone for GroupMemberPointerInstruction
source§fn clone(&self) -> GroupMemberPointerInstruction
fn clone(&self) -> GroupMemberPointerInstruction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl From<GroupMemberPointerInstruction> for u8
impl From<GroupMemberPointerInstruction> for u8
source§fn from(enum_value: GroupMemberPointerInstruction) -> Self
fn from(enum_value: GroupMemberPointerInstruction) -> Self
source§impl PartialEq for GroupMemberPointerInstruction
impl PartialEq for GroupMemberPointerInstruction
source§fn eq(&self, other: &GroupMemberPointerInstruction) -> bool
fn eq(&self, other: &GroupMemberPointerInstruction) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for GroupMemberPointerInstruction
impl TryFrom<u8> for GroupMemberPointerInstruction
§type Error = TryFromPrimitiveError<GroupMemberPointerInstruction>
type Error = TryFromPrimitiveError<GroupMemberPointerInstruction>
source§impl TryFromPrimitive for GroupMemberPointerInstruction
impl TryFromPrimitive for GroupMemberPointerInstruction
type Primitive = u8
type Error = TryFromPrimitiveError<GroupMemberPointerInstruction>
const NAME: &'static str = "GroupMemberPointerInstruction"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for GroupMemberPointerInstruction
impl StructuralPartialEq for GroupMemberPointerInstruction
Auto Trait Implementations§
impl Freeze for GroupMemberPointerInstruction
impl RefUnwindSafe for GroupMemberPointerInstruction
impl Send for GroupMemberPointerInstruction
impl Sync for GroupMemberPointerInstruction
impl Unpin for GroupMemberPointerInstruction
impl UnwindSafe for GroupMemberPointerInstruction
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: 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> 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> 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