#[repr(u8)]pub enum SpotCollateralTransferDirectionDiscriminants {
MarginToSpot = 0,
SpotToMargin = 1,
}Expand description
Auto-generated discriminant enum variants
Variants§
Trait Implementations§
Source§impl Clone for SpotCollateralTransferDirectionDiscriminants
impl Clone for SpotCollateralTransferDirectionDiscriminants
Source§fn clone(&self) -> SpotCollateralTransferDirectionDiscriminants
fn clone(&self) -> SpotCollateralTransferDirectionDiscriminants
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 moreSource§impl<'_enum> From<&'_enum SpotCollateralTransferDirection> for SpotCollateralTransferDirectionDiscriminants
impl<'_enum> From<&'_enum SpotCollateralTransferDirection> for SpotCollateralTransferDirectionDiscriminants
Source§fn from(
val: &'_enum SpotCollateralTransferDirection,
) -> SpotCollateralTransferDirectionDiscriminants
fn from( val: &'_enum SpotCollateralTransferDirection, ) -> SpotCollateralTransferDirectionDiscriminants
Converts to this type from the input type.
Source§impl From<SpotCollateralTransferDirection> for SpotCollateralTransferDirectionDiscriminants
impl From<SpotCollateralTransferDirection> for SpotCollateralTransferDirectionDiscriminants
Source§fn from(
val: SpotCollateralTransferDirection,
) -> SpotCollateralTransferDirectionDiscriminants
fn from( val: SpotCollateralTransferDirection, ) -> SpotCollateralTransferDirectionDiscriminants
Converts to this type from the input type.
Source§impl PartialEq for SpotCollateralTransferDirectionDiscriminants
impl PartialEq for SpotCollateralTransferDirectionDiscriminants
Source§fn eq(&self, other: &SpotCollateralTransferDirectionDiscriminants) -> bool
fn eq(&self, other: &SpotCollateralTransferDirectionDiscriminants) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SpotCollateralTransferDirectionDiscriminants
impl Eq for SpotCollateralTransferDirectionDiscriminants
impl StructuralPartialEq for SpotCollateralTransferDirectionDiscriminants
Auto Trait Implementations§
impl Freeze for SpotCollateralTransferDirectionDiscriminants
impl RefUnwindSafe for SpotCollateralTransferDirectionDiscriminants
impl Send for SpotCollateralTransferDirectionDiscriminants
impl Sync for SpotCollateralTransferDirectionDiscriminants
impl Unpin for SpotCollateralTransferDirectionDiscriminants
impl UnsafeUnpin for SpotCollateralTransferDirectionDiscriminants
impl UnwindSafe for SpotCollateralTransferDirectionDiscriminants
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