#[repr(u8)]pub enum SpotCollateralTransferDirection {
MarginToSpot = 0,
SpotToMargin = 1,
}Variants§
Implementations§
Trait Implementations§
Source§impl AsRef<str> for SpotCollateralTransferDirection
impl AsRef<str> for SpotCollateralTransferDirection
Source§impl BorshDeserialize for SpotCollateralTransferDirection
impl BorshDeserialize for SpotCollateralTransferDirection
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 Clone for SpotCollateralTransferDirection
impl Clone for SpotCollateralTransferDirection
Source§fn clone(&self) -> SpotCollateralTransferDirection
fn clone(&self) -> SpotCollateralTransferDirection
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<'de> Deserialize<'de> for SpotCollateralTransferDirection
impl<'de> Deserialize<'de> for SpotCollateralTransferDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§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 JsonSchema for SpotCollateralTransferDirection
impl JsonSchema for SpotCollateralTransferDirection
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for SpotCollateralTransferDirection
impl Ord for SpotCollateralTransferDirection
Source§fn cmp(&self, other: &SpotCollateralTransferDirection) -> Ordering
fn cmp(&self, other: &SpotCollateralTransferDirection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SpotCollateralTransferDirection
impl PartialEq for SpotCollateralTransferDirection
Source§fn eq(&self, other: &SpotCollateralTransferDirection) -> bool
fn eq(&self, other: &SpotCollateralTransferDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SpotCollateralTransferDirection
impl PartialOrd for SpotCollateralTransferDirection
impl Copy for SpotCollateralTransferDirection
impl Eq for SpotCollateralTransferDirection
impl StructuralPartialEq for SpotCollateralTransferDirection
Auto Trait Implementations§
impl Freeze for SpotCollateralTransferDirection
impl RefUnwindSafe for SpotCollateralTransferDirection
impl Send for SpotCollateralTransferDirection
impl Sync for SpotCollateralTransferDirection
impl Unpin for SpotCollateralTransferDirection
impl UnsafeUnpin for SpotCollateralTransferDirection
impl UnwindSafe for SpotCollateralTransferDirection
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