#[repr(u16)]pub enum ActionType {
SSSwap = 0,
SSWithdrawOne = 1,
SSDepositA = 2,
SSDepositB = 3,
ADWithdraw = 10,
ADDeposit = 11,
}
Expand description
Represents a swap from one token to another.
Variants§
Trait Implementations§
Source§impl BorshDeserialize for ActionType
impl BorshDeserialize for ActionType
Source§impl BorshSerialize for ActionType
impl BorshSerialize for ActionType
Source§impl Clone for ActionType
impl Clone for ActionType
Source§fn clone(&self) -> ActionType
fn clone(&self) -> ActionType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ActionType
impl Debug for ActionType
Source§impl From<ActionType> for u16
impl From<ActionType> for u16
Source§fn from(enum_value: ActionType) -> Self
fn from(enum_value: ActionType) -> Self
Converts to this type from the input type.
Source§impl TryFrom<u16> for ActionType
impl TryFrom<u16> for ActionType
Source§type Error = TryFromPrimitiveError<ActionType>
type Error = TryFromPrimitiveError<ActionType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ActionType
impl TryFromPrimitive for ActionType
impl Copy for ActionType
Auto Trait Implementations§
impl Freeze for ActionType
impl RefUnwindSafe for ActionType
impl Send for ActionType
impl Sync for ActionType
impl Unpin for ActionType
impl UnwindSafe for ActionType
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
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