#[non_exhaustive]#[repr(u8)]pub enum PoolKind {
Show 16 variants
Primary = 0,
SwapImpact = 1,
ClaimableFee = 2,
OpenInterestForLong = 3,
OpenInterestForShort = 4,
OpenInterestInTokensForLong = 5,
OpenInterestInTokensForShort = 6,
PositionImpact = 7,
BorrowingFactor = 8,
FundingAmountPerSizeForLong = 9,
FundingAmountPerSizeForShort = 10,
ClaimableFundingAmountPerSizeForLong = 11,
ClaimableFundingAmountPerSizeForShort = 12,
CollateralSumForLong = 13,
CollateralSumForShort = 14,
TotalBorrowing = 15,
}
Expand description
Pool 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.
Primary = 0
Primary liquidity pool.
SwapImpact = 1
Swap impact.
ClaimableFee = 2
Claimable fee.
OpenInterestForLong = 3
Open Interest for long.
OpenInterestForShort = 4
Open Interest for short.
OpenInterestInTokensForLong = 5
Open Interest in tokens for long.
OpenInterestInTokensForShort = 6
Open Interest in tokens for short.
PositionImpact = 7
Position impact.
BorrowingFactor = 8
Borrowing factor.
FundingAmountPerSizeForLong = 9
Funding amount per size for long.
FundingAmountPerSizeForShort = 10
Funding amount per size for short.
ClaimableFundingAmountPerSizeForLong = 11
Claimable funding amount per size for long.
ClaimableFundingAmountPerSizeForShort = 12
Claimable funding amount per size for short.
CollateralSumForLong = 13
Collateral sum for long.
CollateralSumForShort = 14
Collateral sum for short.
TotalBorrowing = 15
Total borrowing.
Trait Implementations§
Source§impl BorshDeserialize for PoolKind
impl BorshDeserialize for PoolKind
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§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.
§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<'de> Deserialize<'de> for PoolKind
impl<'de> Deserialize<'de> for PoolKind
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 IntoEnumIterator for PoolKind
impl IntoEnumIterator for PoolKind
type Iterator = PoolKindIter
fn iter() -> PoolKindIter ⓘ
Source§impl Ord for PoolKind
impl Ord for PoolKind
Source§impl PartialOrd for PoolKind
impl PartialOrd for PoolKind
impl Copy for PoolKind
impl Eq for PoolKind
impl StructuralPartialEq for PoolKind
Auto Trait Implementations§
impl Freeze for PoolKind
impl RefUnwindSafe for PoolKind
impl Send for PoolKind
impl Sync for PoolKind
impl Unpin for PoolKind
impl UnwindSafe for PoolKind
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