#[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
Available on crate feature anchor-lang only.
impl BorshDeserialize for PoolKind
Available on crate feature
anchor-lang only.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 PoolKind
Available on crate feature anchor-lang only.
impl BorshSerialize for PoolKind
Available on crate feature
anchor-lang only.impl Copy for PoolKind
Source§impl<'de> Deserialize<'de> for PoolKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PoolKind
Available on crate feature
serde only.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
impl Eq for PoolKind
Source§impl IntoEnumIterator for PoolKind
Available on crate feature strum only.
impl IntoEnumIterator for PoolKind
Available on crate feature
strum only.type Iterator = PoolKindIter
fn iter() -> PoolKindIter ⓘ
Source§impl Ord for PoolKind
impl Ord for PoolKind
1.21.0 (const: unstable) · 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 PartialOrd for PoolKind
impl PartialOrd for PoolKind
Source§impl Space for PoolKind
Available on crate feature anchor-lang only.
impl Space for PoolKind
Available on crate feature
anchor-lang only.const INIT_SPACE: usize
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 UnsafeUnpin 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