#[repr(u8)]pub enum StrategyType {
PriceDiscovery = 0,
VolatilePair = 1,
StablePair = 2,
StableSlowlyDiverging = 3,
}Variants§
PriceDiscovery = 0
Used for a brand volatile pair that has a brand new coin with no history,
VolatilePair = 1
Used for a pair like PSY/HXRO
StablePair = 2
Used for a pair like USDC-USDT
StableSlowlyDiverging = 3
Used for a pair like SOL-jitoSOL
Trait Implementations§
Source§impl BorshDeserialize for StrategyType
impl BorshDeserialize for StrategyType
Source§impl BorshSerialize for StrategyType
impl BorshSerialize for StrategyType
Source§impl Clone for StrategyType
impl Clone for StrategyType
Source§fn clone(&self) -> StrategyType
fn clone(&self) -> StrategyType
Returns a duplicate 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 moreimpl Copy for StrategyType
Auto Trait Implementations§
impl Freeze for StrategyType
impl RefUnwindSafe for StrategyType
impl Send for StrategyType
impl Sync for StrategyType
impl Unpin for StrategyType
impl UnwindSafe for StrategyType
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,
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