#[non_exhaustive]#[repr(u8)]pub enum PnlFactorKind {
MaxAfterDeposit = 0,
MaxAfterWithdrawal = 1,
MaxForTrader = 2,
ForAdl = 3,
MinAfterAdl = 4,
}
Expand description
Pnl Factor 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.
MaxAfterDeposit = 0
For deposit.
MaxAfterWithdrawal = 1
For withdrawal.
MaxForTrader = 2
For trader.
ForAdl = 3
For auto-deleveraging.
MinAfterAdl = 4
Min factor after auto-deleveraging.
Trait Implementations§
Source§impl Clone for PnlFactorKind
impl Clone for PnlFactorKind
Source§fn clone(&self) -> PnlFactorKind
fn clone(&self) -> PnlFactorKind
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 PnlFactorKind
impl Debug for PnlFactorKind
Source§impl<'de> Deserialize<'de> for PnlFactorKind
impl<'de> Deserialize<'de> for PnlFactorKind
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 Display for PnlFactorKind
impl Display for PnlFactorKind
Source§impl From<PnlFactorKind> for u8
impl From<PnlFactorKind> for u8
Source§fn from(enum_value: PnlFactorKind) -> Self
fn from(enum_value: PnlFactorKind) -> Self
Converts to this type from the input type.
Source§impl FromStr for PnlFactorKind
impl FromStr for PnlFactorKind
Source§impl Hash for PnlFactorKind
impl Hash for PnlFactorKind
Source§impl IntoEnumIterator for PnlFactorKind
impl IntoEnumIterator for PnlFactorKind
type Iterator = PnlFactorKindIter
fn iter() -> PnlFactorKindIter ⓘ
Source§impl Ord for PnlFactorKind
impl Ord for PnlFactorKind
Source§fn cmp(&self, other: &PnlFactorKind) -> Ordering
fn cmp(&self, other: &PnlFactorKind) -> 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 PnlFactorKind
impl PartialEq for PnlFactorKind
Source§impl PartialOrd for PnlFactorKind
impl PartialOrd for PnlFactorKind
Source§impl Serialize for PnlFactorKind
impl Serialize for PnlFactorKind
Source§impl TryFrom<&str> for PnlFactorKind
impl TryFrom<&str> for PnlFactorKind
Source§impl TryFrom<u8> for PnlFactorKind
impl TryFrom<u8> for PnlFactorKind
Source§impl TryFromPrimitive for PnlFactorKind
impl TryFromPrimitive for PnlFactorKind
impl Copy for PnlFactorKind
impl Eq for PnlFactorKind
impl StructuralPartialEq for PnlFactorKind
Auto Trait Implementations§
impl Freeze for PnlFactorKind
impl RefUnwindSafe for PnlFactorKind
impl Send for PnlFactorKind
impl Sync for PnlFactorKind
impl Unpin for PnlFactorKind
impl UnwindSafe for PnlFactorKind
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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