pub struct Burn<'a> {
pub account: &'a AccountView,
pub mint: &'a AccountView,
pub authority: &'a AccountView,
pub amount: u64,
}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
Implementations§
Source§impl Burn<'_>
impl Burn<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
pub fn invoke_signed( &self, signers: &[Signer<'_, '_>], ) -> Result<(), ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for Burn<'a>
impl<'a> RefUnwindSafe for Burn<'a>
impl<'a> !Send for Burn<'a>
impl<'a> !Sync for Burn<'a>
impl<'a> Unpin for Burn<'a>
impl<'a> UnsafeUnpin for Burn<'a>
impl<'a> UnwindSafe for Burn<'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