pub struct Create<'a, 'b: 'a> {
pub ata_program_id: Option<&'a Pubkey>,
pub payer: CpiAuthority<'a, 'b>,
pub associated_account: &'b NoStdAccountInfo,
pub account_owner: &'b NoStdAccountInfo,
pub mint: &'b NoStdAccountInfo,
pub system_program: &'b NoStdAccountInfo,
pub token_program: &'b NoStdAccountInfo,
pub idempotent: bool,
}Expand description
Arguments for the create instruction on an Associated Token Account program, which creates a token account with an address seeded by its owner and mint.
Fields§
§ata_program_id: Option<&'a Pubkey>If your program interacts with a fork of the official ATA program, provide the ID here. Otherwise, the official ATA program ID will be used by default for CPI.
payer: CpiAuthority<'a, 'b>§associated_account: &'b NoStdAccountInfo§account_owner: &'b NoStdAccountInfo§mint: &'b NoStdAccountInfo§system_program: &'b NoStdAccountInfo§token_program: &'b NoStdAccountInfo§idempotent: boolImplementations§
Source§impl<'a, 'b: 'a> Create<'a, 'b>
impl<'a, 'b: 'a> Create<'a, 'b>
Sourcepub fn into_invoke(self)
pub fn into_invoke(self)
Consume arguments to perform CPI call.
Trait Implementations§
impl<'a, 'b: 'a> Eq for Create<'a, 'b>
impl<'a, 'b: 'a> StructuralPartialEq for Create<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> !Send for Create<'a, 'b>
impl<'a, 'b> !Sync for Create<'a, 'b>
impl<'a, 'b> Freeze for Create<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Create<'a, 'b>
impl<'a, 'b> Unpin for Create<'a, 'b>
impl<'a, 'b> UnsafeUnpin for Create<'a, 'b>
impl<'a, 'b> UnwindSafe for Create<'a, 'b>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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