#[non_exhaustive]#[repr(u8)]pub enum MarketConfigFlag {
SkipBorrowingFeeForSmallerSide = 0,
IgnoreOpenInterestForUsageFactor = 1,
}
Expand description
Market Config Flags.
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.
SkipBorrowingFeeForSmallerSide = 0
Skip borrowing fee for smaller side.
IgnoreOpenInterestForUsageFactor = 1
Ignore open interest for usage factor.
Trait Implementations§
Source§impl Clone for MarketConfigFlag
impl Clone for MarketConfigFlag
Source§fn clone(&self) -> MarketConfigFlag
fn clone(&self) -> MarketConfigFlag
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 MarketConfigFlag
impl Debug for MarketConfigFlag
Source§impl<'de> Deserialize<'de> for MarketConfigFlag
impl<'de> Deserialize<'de> for MarketConfigFlag
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarketConfigFlag, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarketConfigFlag, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MarketConfigFlag
impl Display for MarketConfigFlag
Source§impl FromStr for MarketConfigFlag
impl FromStr for MarketConfigFlag
Source§impl Hash for MarketConfigFlag
impl Hash for MarketConfigFlag
Source§impl IntoEnumIterator for MarketConfigFlag
impl IntoEnumIterator for MarketConfigFlag
type Iterator = MarketConfigFlagIter
fn iter() -> MarketConfigFlagIter
Source§impl Ord for MarketConfigFlag
impl Ord for MarketConfigFlag
Source§fn cmp(&self, other: &MarketConfigFlag) -> Ordering
fn cmp(&self, other: &MarketConfigFlag) -> 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 MarketConfigFlag
impl PartialEq for MarketConfigFlag
Source§impl PartialOrd for MarketConfigFlag
impl PartialOrd for MarketConfigFlag
Source§impl Serialize for MarketConfigFlag
impl Serialize for MarketConfigFlag
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for MarketConfigFlag
impl TryFrom<&str> for MarketConfigFlag
Source§impl TryFrom<u8> for MarketConfigFlag
impl TryFrom<u8> for MarketConfigFlag
Source§type Error = TryFromPrimitiveError<MarketConfigFlag>
type Error = TryFromPrimitiveError<MarketConfigFlag>
The type returned in the event of a conversion error.
Source§fn try_from(
number: u8,
) -> Result<MarketConfigFlag, TryFromPrimitiveError<MarketConfigFlag>>
fn try_from( number: u8, ) -> Result<MarketConfigFlag, TryFromPrimitiveError<MarketConfigFlag>>
Performs the conversion.
Source§impl TryFromPrimitive for MarketConfigFlag
impl TryFromPrimitive for MarketConfigFlag
const NAME: &'static str = "MarketConfigFlag"
type Primitive = u8
type Error = TryFromPrimitiveError<MarketConfigFlag>
fn try_from_primitive( number: <MarketConfigFlag as TryFromPrimitive>::Primitive, ) -> Result<MarketConfigFlag, TryFromPrimitiveError<MarketConfigFlag>>
impl Copy for MarketConfigFlag
impl Eq for MarketConfigFlag
impl StructuralPartialEq for MarketConfigFlag
Auto Trait Implementations§
impl Freeze for MarketConfigFlag
impl RefUnwindSafe for MarketConfigFlag
impl Send for MarketConfigFlag
impl Sync for MarketConfigFlag
impl Unpin for MarketConfigFlag
impl UnwindSafe for MarketConfigFlag
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