pub struct InitializeGroupMemberPointerData<'a> {
pub authority: Option<&'a Pubkey>,
pub group_member: &'a Pubkey,
}Expand description
Data required to initialize the group member pointer extension, which is used to associate a mint with a group (via group pointer extension).
Fields§
Who has authority to update the group member pointer. If None, the group member cannot be modified.
Some(&Pubkey::default()) is analogous to None in this context.
group_member: &'a PubkeyWhere the group member is stored.
Some(&Pubkey::default()) is analogous to None in this context.
§Notes
The initialize group member pointer instruction actually takes an optional member account, where if both the authority and member 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 group member pointer, this data must be specified.
Trait Implementations§
Source§impl<'a> Clone for InitializeGroupMemberPointerData<'a>
impl<'a> Clone for InitializeGroupMemberPointerData<'a>
Source§impl<'a> Debug for InitializeGroupMemberPointerData<'a>
impl<'a> Debug for InitializeGroupMemberPointerData<'a>
impl<'a> Eq for InitializeGroupMemberPointerData<'a>
Source§impl<'a> PartialEq for InitializeGroupMemberPointerData<'a>
impl<'a> PartialEq for InitializeGroupMemberPointerData<'a>
impl<'a> StructuralPartialEq for InitializeGroupMemberPointerData<'a>
Auto Trait Implementations§
impl<'a> Freeze for InitializeGroupMemberPointerData<'a>
impl<'a> RefUnwindSafe for InitializeGroupMemberPointerData<'a>
impl<'a> Send for InitializeGroupMemberPointerData<'a>
impl<'a> Sync for InitializeGroupMemberPointerData<'a>
impl<'a> Unpin for InitializeGroupMemberPointerData<'a>
impl<'a> UnsafeUnpin for InitializeGroupMemberPointerData<'a>
impl<'a> UnwindSafe for InitializeGroupMemberPointerData<'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