pub struct MintToChecked<'a> {
pub mint: &'a AccountView,
pub account: &'a AccountView,
pub mint_authority: &'a AccountView,
pub amount: u64,
pub decimals: u8,
}Expand description
Builder for SPL Token MintToChecked (instruction index 14).
Same-shape decimals guard as TransferChecked. The Hopper-
preferred path when minting into a Token-2022 account.
Fields§
§mint: &'a AccountView§account: &'a AccountView§amount: u64§decimals: u8Implementations§
Source§impl MintToChecked<'_>
impl MintToChecked<'_>
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Auto Trait Implementations§
impl<'a> Freeze for MintToChecked<'a>
impl<'a> RefUnwindSafe for MintToChecked<'a>
impl<'a> Send for MintToChecked<'a>
impl<'a> Sync for MintToChecked<'a>
impl<'a> Unpin for MintToChecked<'a>
impl<'a> UnsafeUnpin for MintToChecked<'a>
impl<'a> UnwindSafe for MintToChecked<'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