pub struct RebalancingStrategy {
pub strategy_id: String,
pub strategy_name: String,
pub strategy_type: RebalancingStrategyType,
pub parameters: RebalancingParameters,
pub constraints: RebalancingConstraints,
pub target_weights: HashMap<String, f64>,
}Expand description
Rebalancing strategies
Fields§
§strategy_id: String§strategy_name: String§strategy_type: RebalancingStrategyType§parameters: RebalancingParameters§constraints: RebalancingConstraints§target_weights: HashMap<String, f64>Target portfolio weights keyed by asset_id, summing to ~1.0. Used by
RebalancingEngine::rebalance to compute drift away from the target
allocation. Assets without an entry are treated as target weight 0.0.
Implementations§
Trait Implementations§
Source§impl Clone for RebalancingStrategy
impl Clone for RebalancingStrategy
Source§fn clone(&self) -> RebalancingStrategy
fn clone(&self) -> RebalancingStrategy
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 RebalancingStrategy
impl RefUnwindSafe for RebalancingStrategy
impl Send for RebalancingStrategy
impl Sync for RebalancingStrategy
impl Unpin for RebalancingStrategy
impl UnsafeUnpin for RebalancingStrategy
impl UnwindSafe for RebalancingStrategy
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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