pub struct BurnChecked<'a> {
pub account: &'a AccountView,
pub mint: &'a AccountView,
pub authority: &'a AccountView,
pub amount: u64,
pub decimals: u8,
}Expand description
Burns tokens by removing them from an account.
§Accounts:
[WRITE]The account to burn from.[WRITE]The token mint.[SIGNER]The account’s owner/delegate.
Fields§
§account: &'a AccountViewSource of the Burn Account
mint: &'a AccountViewMint Account
Owner of the Token Account
amount: u64Amount
decimals: u8Decimals
Implementations§
Source§impl BurnChecked<'_>
impl BurnChecked<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
pub fn invoke_signed( &self, signers: &[Signer<'_, '_>], ) -> Result<(), ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for BurnChecked<'a>
impl<'a> RefUnwindSafe for BurnChecked<'a>
impl<'a> !Send for BurnChecked<'a>
impl<'a> !Sync for BurnChecked<'a>
impl<'a> Unpin for BurnChecked<'a>
impl<'a> UnsafeUnpin for BurnChecked<'a>
impl<'a> UnwindSafe for BurnChecked<'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