pub struct UpdateGroupV1Builder { /* private fields */ }Expand description
Instruction builder for UpdateGroupV1.
§Accounts:
[writable]group[writable, signer]payer[signer, optional]authority[optional]new_update_authority[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl UpdateGroupV1Builder
impl UpdateGroupV1Builder
pub fn new() -> Self
[optional account]
The update authority of the group
[optional account]
The new update authority of the group
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 UpdateGroupV1Builder
impl Default for UpdateGroupV1Builder
Source§fn default() -> UpdateGroupV1Builder
fn default() -> UpdateGroupV1Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateGroupV1Builder
impl RefUnwindSafe for UpdateGroupV1Builder
impl Send for UpdateGroupV1Builder
impl Sync for UpdateGroupV1Builder
impl Unpin for UpdateGroupV1Builder
impl UnsafeUnpin for UpdateGroupV1Builder
impl UnwindSafe for UpdateGroupV1Builder
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