pub struct FreezeAccount<'a> {
pub account: &'a AccountView,
pub mint: &'a AccountView,
pub freeze_authority: &'a AccountView,
}Expand description
Freeze an initialized account using the Mint’s freeze authority.
§Accounts:
[WRITE]The account to freeze.[]The token mint.[SIGNER]The mint freeze authority.
Fields§
§account: &'a AccountViewToken Account to freeze.
mint: &'a AccountViewMint Account.
Mint Freeze Authority Account
Implementations§
Source§impl FreezeAccount<'_>
impl FreezeAccount<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
pub fn invoke_signed( &self, signers: &[Signer<'_, '_>], ) -> Result<(), ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for FreezeAccount<'a>
impl<'a> RefUnwindSafe for FreezeAccount<'a>
impl<'a> !Send for FreezeAccount<'a>
impl<'a> !Sync for FreezeAccount<'a>
impl<'a> Unpin for FreezeAccount<'a>
impl<'a> UnwindSafe for FreezeAccount<'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