pub struct InvariantSwapKeys {
pub swap_program: Pubkey,
pub state: Pubkey,
pub pool: Pubkey,
pub tickmap: Pubkey,
pub account_x: Pubkey,
pub account_y: Pubkey,
pub reserve_x: Pubkey,
pub reserve_y: Pubkey,
pub owner: Pubkey,
pub program_authority: Pubkey,
pub token_program: Pubkey,
}Fields§
§swap_program: Pubkey§state: Pubkey§pool: Pubkey§tickmap: Pubkey§account_x: Pubkey§account_y: Pubkey§reserve_x: Pubkey§reserve_y: Pubkey§owner: Pubkey§token_program: PubkeyTrait Implementations§
Source§impl Clone for InvariantSwapKeys
impl Clone for InvariantSwapKeys
Source§fn clone(&self) -> InvariantSwapKeys
fn clone(&self) -> InvariantSwapKeys
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 InvariantSwapKeys
Source§impl Debug for InvariantSwapKeys
impl Debug for InvariantSwapKeys
Source§impl From<InvariantSwapAccounts<'_, '_>> for InvariantSwapKeys
impl From<InvariantSwapAccounts<'_, '_>> for InvariantSwapKeys
Source§fn from(accounts: InvariantSwapAccounts<'_, '_>) -> Self
fn from(accounts: InvariantSwapAccounts<'_, '_>) -> Self
Converts to this type from the input type.
Source§impl From<InvariantSwapKeys> for [AccountMeta; 11]
impl From<InvariantSwapKeys> for [AccountMeta; 11]
Source§fn from(keys: InvariantSwapKeys) -> Self
fn from(keys: InvariantSwapKeys) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvariantSwapKeys
impl PartialEq for InvariantSwapKeys
Source§fn eq(&self, other: &InvariantSwapKeys) -> bool
fn eq(&self, other: &InvariantSwapKeys) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvariantSwapKeys
Auto Trait Implementations§
impl Freeze for InvariantSwapKeys
impl RefUnwindSafe for InvariantSwapKeys
impl Send for InvariantSwapKeys
impl Sync for InvariantSwapKeys
impl Unpin for InvariantSwapKeys
impl UnsafeUnpin for InvariantSwapKeys
impl UnwindSafe for InvariantSwapKeys
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