pub struct Burn<'a> {
pub account: &'a AccountView,
pub mint: &'a AccountView,
pub authority: &'a AccountView,
pub amount: u64,
}Expand description
Builder for SPL Token Burn (instruction index 8).
Fields§
§account: &'a AccountView§mint: &'a AccountView§amount: u64Implementations§
Source§impl Burn<'_>
impl Burn<'_>
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
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