pub enum Swap {
Show 36 variants Saber, SaberAddDecimalsDeposit, SaberAddDecimalsWithdraw, TokenSwap, Sencha, Step, Cropper, Raydium, Crema { a_to_b: bool, }, Lifinity, Mercurial, Cykura, Serum { side: Side, }, MarinadeDeposit, MarinadeUnstake, Aldrin { side: Side, }, AldrinV2 { side: Side, }, Whirlpool { a_to_b: bool, }, Invariant { x_to_y: bool, }, Meteora, GooseFX, DeltaFi { stable: bool, }, Balansol, MarcoPolo { x_to_y: bool, }, Dradex { side: Side, }, LifinityV2, RaydiumClmm, Openbook { side: Side, }, Phoenix { side: Side, }, Symmetry { from_token_id: u64, to_token_id: u64, }, TokenSwapV2, HeliumTreasuryManagementRedeemV0, StakeDexStakeWrappedSol, StakeDexSwapViaStake { bridge_stake_seed: u32, }, GooseFXV2, Perps,
}

Variants§

§

Saber

§

SaberAddDecimalsDeposit

§

SaberAddDecimalsWithdraw

§

TokenSwap

§

Sencha

§

Step

§

Cropper

§

Raydium

§

Crema

Fields

§a_to_b: bool
§

Lifinity

§

Mercurial

§

Cykura

§

Serum

Fields

§side: Side
§

MarinadeDeposit

§

MarinadeUnstake

§

Aldrin

Fields

§side: Side
§

AldrinV2

Fields

§side: Side
§

Whirlpool

Fields

§a_to_b: bool
§

Invariant

Fields

§x_to_y: bool
§

Meteora

§

GooseFX

§

DeltaFi

Fields

§stable: bool
§

Balansol

§

MarcoPolo

Fields

§x_to_y: bool
§

Dradex

Fields

§side: Side
§

LifinityV2

§

RaydiumClmm

§

Openbook

Fields

§side: Side
§

Phoenix

Fields

§side: Side
§

Symmetry

Fields

§from_token_id: u64
§to_token_id: u64
§

TokenSwapV2

§

HeliumTreasuryManagementRedeemV0

§

StakeDexStakeWrappedSol

§

StakeDexSwapViaStake

Fields

§bridge_stake_seed: u32
§

GooseFXV2

§

Perps

Trait Implementations§

source§

impl BorshSerialize for Swap

source§

fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>

source§

fn try_to_vec(&self) -> Result<Vec<u8>, Error>

Serialize this instance into a vector of bytes.
source§

impl Clone for Swap

source§

fn clone(&self) -> Swap

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Swap

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Swap

source§

fn eq(&self, other: &Swap) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Swap

source§

impl StructuralPartialEq for Swap

Auto Trait Implementations§

§

impl RefUnwindSafe for Swap

§

impl Send for Swap

§

impl Sync for Swap

§

impl Unpin for Swap

§

impl UnwindSafe for Swap

Blanket Implementations§

§

impl<T> AbiExample for T

§

default fn example() -> T

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more