pub struct ThresholdCandidate {
pub params: ThresholdParams,
pub expected_fees: Decimal,
pub expected_il: Decimal,
pub expected_rebalances: u32,
pub score: Decimal,
}Expand description
Candidate result for threshold optimization.
Fields§
§params: ThresholdParamsThe parameters.
expected_fees: DecimalExpected fees.
expected_il: DecimalExpected IL.
expected_rebalances: u32Expected number of rebalances.
score: DecimalObjective score.
Trait Implementations§
Source§impl Clone for ThresholdCandidate
impl Clone for ThresholdCandidate
Source§fn clone(&self) -> ThresholdCandidate
fn clone(&self) -> ThresholdCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThresholdCandidate
impl RefUnwindSafe for ThresholdCandidate
impl Send for ThresholdCandidate
impl Sync for ThresholdCandidate
impl Unpin for ThresholdCandidate
impl UnsafeUnpin for ThresholdCandidate
impl UnwindSafe for ThresholdCandidate
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