pub struct CreateWhitelistBuilder { /* private fields */ }Expand description
Instruction builder for CreateWhitelist.
§Accounts:
[writable]whitelist_account[signer]whitelist_authority[signer]funder[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl CreateWhitelistBuilder
impl CreateWhitelistBuilder
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 to initialize
The authority that will control the whitelist
Sourcepub fn funder(&mut self, funder: Pubkey) -> &mut Self
pub fn funder(&mut self, funder: Pubkey) -> &mut Self
Account that will pay for the account creation
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 CreateWhitelistBuilder
impl Clone for CreateWhitelistBuilder
Source§impl Debug for CreateWhitelistBuilder
impl Debug for CreateWhitelistBuilder
Auto Trait Implementations§
impl Freeze for CreateWhitelistBuilder
impl RefUnwindSafe for CreateWhitelistBuilder
impl Send for CreateWhitelistBuilder
impl Sync for CreateWhitelistBuilder
impl Unpin for CreateWhitelistBuilder
impl UnsafeUnpin for CreateWhitelistBuilder
impl UnwindSafe for CreateWhitelistBuilder
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