pub struct TokenSwapV2Keys {Show 15 fields
pub swap_program: Pubkey,
pub swap: Pubkey,
pub authority: Pubkey,
pub user_transfer_authority: Pubkey,
pub source: Pubkey,
pub swap_source: Pubkey,
pub swap_destination: Pubkey,
pub destination: Pubkey,
pub pool_mint: Pubkey,
pub pool_fee: Pubkey,
pub source_mint: Pubkey,
pub destination_mint: Pubkey,
pub source_token_program: Pubkey,
pub destination_token_program: Pubkey,
pub pool_token_program: Pubkey,
}Fields§
§swap_program: Pubkey§swap: Pubkey§source: Pubkey§swap_source: Pubkey§swap_destination: Pubkey§destination: Pubkey§pool_mint: Pubkey§pool_fee: Pubkey§source_mint: Pubkey§destination_mint: Pubkey§source_token_program: Pubkey§destination_token_program: Pubkey§pool_token_program: PubkeyTrait Implementations§
Source§impl Clone for TokenSwapV2Keys
impl Clone for TokenSwapV2Keys
Source§fn clone(&self) -> TokenSwapV2Keys
fn clone(&self) -> TokenSwapV2Keys
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 Copy for TokenSwapV2Keys
Source§impl Debug for TokenSwapV2Keys
impl Debug for TokenSwapV2Keys
Source§impl From<TokenSwapV2Accounts<'_, '_>> for TokenSwapV2Keys
impl From<TokenSwapV2Accounts<'_, '_>> for TokenSwapV2Keys
Source§fn from(accounts: TokenSwapV2Accounts<'_, '_>) -> Self
fn from(accounts: TokenSwapV2Accounts<'_, '_>) -> Self
Converts to this type from the input type.
Source§impl From<TokenSwapV2Keys> for [AccountMeta; 15]
impl From<TokenSwapV2Keys> for [AccountMeta; 15]
Source§fn from(keys: TokenSwapV2Keys) -> Self
fn from(keys: TokenSwapV2Keys) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TokenSwapV2Keys
impl PartialEq for TokenSwapV2Keys
Source§fn eq(&self, other: &TokenSwapV2Keys) -> bool
fn eq(&self, other: &TokenSwapV2Keys) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TokenSwapV2Keys
Auto Trait Implementations§
impl Freeze for TokenSwapV2Keys
impl RefUnwindSafe for TokenSwapV2Keys
impl Send for TokenSwapV2Keys
impl Sync for TokenSwapV2Keys
impl Unpin for TokenSwapV2Keys
impl UnsafeUnpin for TokenSwapV2Keys
impl UnwindSafe for TokenSwapV2Keys
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