pub struct AddCollectionsToGroupV1Builder { /* private fields */ }Expand description
Instruction builder for AddCollectionsToGroupV1.
§Accounts:
[writable]group[writable, signer]payer[signer, optional]authority[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl AddCollectionsToGroupV1Builder
impl AddCollectionsToGroupV1Builder
pub fn new() -> Self
[optional account]
The group update authority and collection update authority or delegate
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
The system program
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Default for AddCollectionsToGroupV1Builder
impl Default for AddCollectionsToGroupV1Builder
Source§fn default() -> AddCollectionsToGroupV1Builder
fn default() -> AddCollectionsToGroupV1Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddCollectionsToGroupV1Builder
impl RefUnwindSafe for AddCollectionsToGroupV1Builder
impl Send for AddCollectionsToGroupV1Builder
impl Sync for AddCollectionsToGroupV1Builder
impl Unpin for AddCollectionsToGroupV1Builder
impl UnsafeUnpin for AddCollectionsToGroupV1Builder
impl UnwindSafe for AddCollectionsToGroupV1Builder
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