pub struct RemoveEntry<'a> {
pub whitelist_account: &'a AccountInfo,
pub whitelist_authority: &'a AccountInfo,
pub whitelist_entry_account: &'a AccountInfo,
pub destination_account: &'a AccountInfo,
pub system_program: &'a AccountInfo,
pub program_authority: Pubkey,
}Expand description
Closes a specific whitelist entry account, transferring its rent lamports to a designated destination account.
§Accounts:
[]The whitelist account (Used for validation)[SIGNER]The whitelist authority[WRITE]The whitelist entry account to close[WRITE]The destination account for reclaimed lamports[]System program
Fields§
§whitelist_account: &'a AccountInfoThe whitelist account (Used for validation)
The whitelist authority
whitelist_entry_account: &'a AccountInfoThe whitelist entry account to close
destination_account: &'a AccountInfoThe destination account for reclaimed lamports
system_program: &'a AccountInfoSystem program
program authority public key
Implementations§
Source§impl<'a> RemoveEntry<'a>
impl<'a> RemoveEntry<'a>
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Auto Trait Implementations§
impl<'a> Freeze for RemoveEntry<'a>
impl<'a> RefUnwindSafe for RemoveEntry<'a>
impl<'a> !Send for RemoveEntry<'a>
impl<'a> !Sync for RemoveEntry<'a>
impl<'a> Unpin for RemoveEntry<'a>
impl<'a> UnwindSafe for RemoveEntry<'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