pub struct CreateTokenAccount {
pub token_account: Pubkey,
pub authority: Pubkey,
pub user: Pubkey,
pub payer: Pubkey,
pub system_program: Pubkey,
}Expand description
Accounts.
Fields§
§token_account: PubkeyThe token authority account.
The authority for the token account.
user: PubkeyThe pubkey of the user associated with the token account
payer: PubkeyThe account paying for the storage fees.
system_program: PubkeyThe system program
Implementations§
Source§impl CreateTokenAccount
impl CreateTokenAccount
pub fn instruction( &self, args: CreateTokenAccountInstructionArgs, ) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: CreateTokenAccountInstructionArgs, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for CreateTokenAccount
impl RefUnwindSafe for CreateTokenAccount
impl Send for CreateTokenAccount
impl Sync for CreateTokenAccount
impl Unpin for CreateTokenAccount
impl UnwindSafe for CreateTokenAccount
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more