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
Mints new tokens to an account.
§Accounts:
[WRITE]The mint.[WRITE]The account to mint tokens to.[SIGNER]The mint’s minting authority.
Fields§
§mint: &'a AccountViewMint Account.
account: &'a AccountViewToken Account.
Mint Authority
amount: u64Amount
decimals: u8Decimals
Implementations§
Source§impl MintToChecked<'_>
impl MintToChecked<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
pub fn invoke_signed( &self, signers: &[Signer<'_, '_>], ) -> Result<(), ProgramError>
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