Enum continuation_router::ActionType
source · [−]#[repr(u16)]
pub enum ActionType {
SSSwap,
SSWithdrawOne,
SSDepositA,
SSDepositB,
ADWithdraw,
ADDeposit,
}Expand description
Represents a swap from one token to another.
Variants
SSSwap
SSWithdrawOne
SSDepositA
SSDepositB
ADWithdraw
ADDeposit
Trait Implementations
sourceimpl BorshDeserialize for ActionType
impl BorshDeserialize for ActionType
sourceimpl BorshSerialize for ActionType
impl BorshSerialize for ActionType
sourceimpl Clone for ActionType
impl Clone for ActionType
sourcefn clone(&self) -> ActionType
fn clone(&self) -> ActionType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ActionType
impl Debug for ActionType
sourceimpl From<ActionType> for u16
impl From<ActionType> for u16
sourcefn from(enum_value: ActionType) -> Self
fn from(enum_value: ActionType) -> Self
Performs the conversion.
sourceimpl TryFrom<u16> for ActionType
impl TryFrom<u16> for ActionType
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
sourcefn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ActionType
impl TryFromPrimitive for ActionType
type Primitive = u16
const NAME: &'static str
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ActionType
Auto Trait Implementations
impl RefUnwindSafe for ActionType
impl Send for ActionType
impl Sync for ActionType
impl Unpin for ActionType
impl UnwindSafe for ActionType
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more