pub struct AddEntryBuilder { /* private fields */ }Expand description
Instruction builder for AddEntry.
§Accounts:
[]whitelist_account[signer]whitelist_authority[writable]whitelist_entry_account[writable, signer]payer[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl AddEntryBuilder
impl AddEntryBuilder
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
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 AddEntryBuilder
impl Clone for AddEntryBuilder
Source§impl Debug for AddEntryBuilder
impl Debug for AddEntryBuilder
Auto Trait Implementations§
impl Freeze for AddEntryBuilder
impl RefUnwindSafe for AddEntryBuilder
impl Send for AddEntryBuilder
impl Sync for AddEntryBuilder
impl Unpin for AddEntryBuilder
impl UnsafeUnpin for AddEntryBuilder
impl UnwindSafe for AddEntryBuilder
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