pub struct AddGroupsToGroupV1Builder { /* private fields */ }Expand description
Instruction builder for AddGroupsToGroupV1.
§Accounts:
[writable]parent_group[writable, signer]payer[signer, optional]authority[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl AddGroupsToGroupV1Builder
impl AddGroupsToGroupV1Builder
pub fn new() -> Self
Sourcepub fn parent_group(&mut self, parent_group: Pubkey) -> &mut Self
pub fn parent_group(&mut self, parent_group: Pubkey) -> &mut Self
The address of the parent group to modify
[optional account]
The update authority of the parent and child groups
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
pub fn groups(&mut self, groups: Vec<Pubkey>) -> &mut Self
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 AddGroupsToGroupV1Builder
impl Default for AddGroupsToGroupV1Builder
Source§fn default() -> AddGroupsToGroupV1Builder
fn default() -> AddGroupsToGroupV1Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddGroupsToGroupV1Builder
impl RefUnwindSafe for AddGroupsToGroupV1Builder
impl Send for AddGroupsToGroupV1Builder
impl Sync for AddGroupsToGroupV1Builder
impl Unpin for AddGroupsToGroupV1Builder
impl UnsafeUnpin for AddGroupsToGroupV1Builder
impl UnwindSafe for AddGroupsToGroupV1Builder
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