pub struct CreateWhitelist<'a> {
pub whitelist_account: &'a AccountInfo,
pub whitelist_authority: &'a AccountInfo,
pub funder: &'a AccountInfo,
pub system_program: &'a AccountInfo,
}Expand description
Initializes the program whitelist account, setting its initial state with the initial authority.
§Accounts:
[WRITE]The whitelist account to initialize[SIGNER]The authority that will control the whitelist[SIGNER]Account that will pay for the account creation[]The system program
Fields§
§whitelist_account: &'a AccountInfoThe whitelist account to initialize
The authority that will control the whitelist
funder: &'a AccountInfoAccount that will pay for the account creation
system_program: &'a AccountInfoSystem program
Implementations§
Source§impl<'a> CreateWhitelist<'a>
impl<'a> CreateWhitelist<'a>
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Auto Trait Implementations§
impl<'a> Freeze for CreateWhitelist<'a>
impl<'a> RefUnwindSafe for CreateWhitelist<'a>
impl<'a> !Send for CreateWhitelist<'a>
impl<'a> !Sync for CreateWhitelist<'a>
impl<'a> Unpin for CreateWhitelist<'a>
impl<'a> UnwindSafe for CreateWhitelist<'a>
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