#[repr(u8)]pub enum MarketFlag {
Enabled = 0,
Pure = 1,
AutoDeleveragingEnabledForLong = 2,
AutoDeleveragingEnabledForShort = 3,
GTEnabled = 4,
}
Expand description
Market Flags.
Variants§
Enabled = 0
Is enabled.
Pure = 1
Is Pure.
AutoDeleveragingEnabledForLong = 2
Is auto-deleveraging enabled for long.
AutoDeleveragingEnabledForShort = 3
Is auto-deleveraging enabled for short.
GTEnabled = 4
Is GT minting enabled.
Trait Implementations§
Source§impl From<MarketFlag> for u8
impl From<MarketFlag> for u8
Source§fn from(enum_value: MarketFlag) -> Self
fn from(enum_value: MarketFlag) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarketFlag
impl RefUnwindSafe for MarketFlag
impl Send for MarketFlag
impl Sync for MarketFlag
impl Unpin for MarketFlag
impl UnwindSafe for MarketFlag
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> 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