pub struct RemoveEntryBuilder { /* private fields */ }Expand description
Instruction builder for RemoveEntry.
§Accounts:
[]whitelist_account[signer]whitelist_authority[writable]whitelist_entry_account[writable]destination_account[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl RemoveEntryBuilder
impl RemoveEntryBuilder
pub fn new() -> Self
Sourcepub fn whitelist_account(&mut self, whitelist_account: Pubkey) -> &mut Self
pub fn whitelist_account(&mut self, whitelist_account: Pubkey) -> &mut Self
The whitelist account
The whitelist authority
Sourcepub fn whitelist_entry_account(
&mut self,
whitelist_entry_account: Pubkey,
) -> &mut Self
pub fn whitelist_entry_account( &mut self, whitelist_entry_account: Pubkey, ) -> &mut Self
The whitelist entry account to close
Sourcepub fn destination_account(&mut self, destination_account: Pubkey) -> &mut Self
pub fn destination_account(&mut self, destination_account: Pubkey) -> &mut Self
The destination account for reclaimed lamports
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']
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 additional 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 Clone for RemoveEntryBuilder
impl Clone for RemoveEntryBuilder
Source§impl Debug for RemoveEntryBuilder
impl Debug for RemoveEntryBuilder
Auto Trait Implementations§
impl Freeze for RemoveEntryBuilder
impl RefUnwindSafe for RemoveEntryBuilder
impl Send for RemoveEntryBuilder
impl Sync for RemoveEntryBuilder
impl Unpin for RemoveEntryBuilder
impl UnsafeUnpin for RemoveEntryBuilder
impl UnwindSafe for RemoveEntryBuilder
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