pub enum SecondLegAllocationStrategy {
MinApr {
apr: u64,
},
ProjectedPnlFraction {
fraction_bps: u64,
},
FixedFraction {
fraction_bps: u64,
},
ExtraStrategy1 {
uint1: u64,
uint2: u64,
uint3: u64,
uint4: u64,
u81: u8,
u82: u8,
u83: u8,
u84: u8,
},
}Variants§
Trait Implementations§
Source§impl Clone for SecondLegAllocationStrategy
impl Clone for SecondLegAllocationStrategy
Source§fn clone(&self) -> SecondLegAllocationStrategy
fn clone(&self) -> SecondLegAllocationStrategy
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 moreSource§impl Debug for SecondLegAllocationStrategy
impl Debug for SecondLegAllocationStrategy
impl Copy for SecondLegAllocationStrategy
impl StructuralPartialEq for SecondLegAllocationStrategy
Auto Trait Implementations§
impl Freeze for SecondLegAllocationStrategy
impl RefUnwindSafe for SecondLegAllocationStrategy
impl Send for SecondLegAllocationStrategy
impl Sync for SecondLegAllocationStrategy
impl Unpin for SecondLegAllocationStrategy
impl UnwindSafe for SecondLegAllocationStrategy
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