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