pub struct LifinitySwapAccounts<'me, 'info> {Show 14 fields
pub swap_program: &'me AccountInfo<'info>,
pub authority: &'me AccountInfo<'info>,
pub amm: &'me AccountInfo<'info>,
pub user_transfer_authority: &'me AccountInfo<'info>,
pub source_info: &'me AccountInfo<'info>,
pub destination_info: &'me AccountInfo<'info>,
pub swap_source: &'me AccountInfo<'info>,
pub swap_destination: &'me AccountInfo<'info>,
pub pool_mint: &'me AccountInfo<'info>,
pub fee_account: &'me AccountInfo<'info>,
pub token_program: &'me AccountInfo<'info>,
pub pyth_account: &'me AccountInfo<'info>,
pub pyth_pc_account: &'me AccountInfo<'info>,
pub config_account: &'me AccountInfo<'info>,
}Fields§
§swap_program: &'me AccountInfo<'info>§amm: &'me AccountInfo<'info>§source_info: &'me AccountInfo<'info>§destination_info: &'me AccountInfo<'info>§swap_source: &'me AccountInfo<'info>§swap_destination: &'me AccountInfo<'info>§pool_mint: &'me AccountInfo<'info>§fee_account: &'me AccountInfo<'info>§token_program: &'me AccountInfo<'info>§pyth_account: &'me AccountInfo<'info>§pyth_pc_account: &'me AccountInfo<'info>§config_account: &'me AccountInfo<'info>Trait Implementations§
Source§impl<'me, 'info> Clone for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> Clone for LifinitySwapAccounts<'me, 'info>
Source§fn clone(&self) -> LifinitySwapAccounts<'me, 'info>
fn clone(&self) -> LifinitySwapAccounts<'me, 'info>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'me, 'info> Copy for LifinitySwapAccounts<'me, 'info>
Source§impl<'me, 'info> Debug for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> Debug for LifinitySwapAccounts<'me, 'info>
Source§impl<'me, 'info> From<&'me [AccountInfo<'info>; 14]> for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> From<&'me [AccountInfo<'info>; 14]> for LifinitySwapAccounts<'me, 'info>
Source§fn from(arr: &'me [AccountInfo<'info>; 14]) -> Self
fn from(arr: &'me [AccountInfo<'info>; 14]) -> Self
Converts to this type from the input type.
Source§impl From<LifinitySwapAccounts<'_, '_>> for LifinitySwapKeys
impl From<LifinitySwapAccounts<'_, '_>> for LifinitySwapKeys
Source§fn from(accounts: LifinitySwapAccounts<'_, '_>) -> Self
fn from(accounts: LifinitySwapAccounts<'_, '_>) -> Self
Converts to this type from the input type.
Source§impl<'info> From<LifinitySwapAccounts<'_, 'info>> for [AccountInfo<'info>; 14]
impl<'info> From<LifinitySwapAccounts<'_, 'info>> for [AccountInfo<'info>; 14]
Source§fn from(accounts: LifinitySwapAccounts<'_, 'info>) -> Self
fn from(accounts: LifinitySwapAccounts<'_, 'info>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'me, 'info> !RefUnwindSafe for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> !Send for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> !Sync for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> !UnwindSafe for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> Freeze for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> Unpin for LifinitySwapAccounts<'me, 'info>
impl<'me, 'info> UnsafeUnpin for LifinitySwapAccounts<'me, 'info>
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