pub struct InitializeAccount2<'a> {
pub account: &'a AccountView,
pub mint: &'a AccountView,
pub rent_sysvar: &'a AccountView,
pub owner: &'a Address,
}Expand description
Initialize a new Token Account.
§Accounts:
[WRITE]The account to initialize.[]The mint this account will be associated with.[]Rent sysvar
Fields§
§account: &'a AccountViewNew Account.
mint: &'a AccountViewMint Account.
rent_sysvar: &'a AccountViewRent Sysvar Account
owner: &'a AddressOwner of the new Account.
Implementations§
Source§impl InitializeAccount2<'_>
impl InitializeAccount2<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for InitializeAccount2<'a>
impl<'a> RefUnwindSafe for InitializeAccount2<'a>
impl<'a> !Send for InitializeAccount2<'a>
impl<'a> !Sync for InitializeAccount2<'a>
impl<'a> Unpin for InitializeAccount2<'a>
impl<'a> UnsafeUnpin for InitializeAccount2<'a>
impl<'a> UnwindSafe for InitializeAccount2<'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