#[non_exhaustive]#[repr(u8)]pub enum ActionKind {
Deposit = 0,
Withdrawal = 1,
Shift = 2,
Order = 3,
GlvDeposit = 4,
GlvWithdrawal = 5,
GlvShift = 6,
}Expand description
Action kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Deposit = 0
Deposit.
Withdrawal = 1
Withdrawal.
Shift = 2
Shift.
Order = 3
Order.
GlvDeposit = 4
GLV deposit.
GlvWithdrawal = 5
GLV withdrawal.
GlvShift = 6
GLV shift.
Trait Implementations§
Source§impl BorshDeserialize for ActionKind
impl BorshDeserialize for ActionKind
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ActionKind
impl BorshSerialize for ActionKind
Source§impl Clone for ActionKind
impl Clone for ActionKind
Source§fn clone(&self) -> ActionKind
fn clone(&self) -> ActionKind
Returns a duplicate 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 EnumExt for ActionKind
impl EnumExt for ActionKind
Source§impl From<ActionKind> for u8
impl From<ActionKind> for u8
Source§fn from(enum_value: ActionKind) -> Self
fn from(enum_value: ActionKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ActionKind
impl PartialEq for ActionKind
Source§impl Space for ActionKind
impl Space for ActionKind
const INIT_SPACE: usize = 1usize
Source§impl TryFrom<u8> for ActionKind
impl TryFrom<u8> for ActionKind
Source§type Error = TryFromPrimitiveError<ActionKind>
type Error = TryFromPrimitiveError<ActionKind>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ActionKind
impl TryFromPrimitive for ActionKind
const NAME: &'static str = "ActionKind"
type Primitive = u8
type Error = TryFromPrimitiveError<ActionKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ActionKind
impl Eq for ActionKind
impl StructuralPartialEq for ActionKind
Auto Trait Implementations§
impl Freeze for ActionKind
impl RefUnwindSafe for ActionKind
impl Send for ActionKind
impl Sync for ActionKind
impl Unpin for ActionKind
impl UnwindSafe for ActionKind
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