pub enum RebalanceMode {
None,
Daily,
Weekly,
Monthly,
Quarterly,
}Expand description
Rebalancing mode for portfolio composition.
Variants§
None
Buy-and-hold: weights drift with performance.
Daily
Reset weights to target every period.
Weekly
Reset weights to target at each week boundary (Monday).
Monthly
Reset weights to target at each month boundary.
Quarterly
Reset weights to target at each quarter boundary.
Trait Implementations§
Source§impl Clone for RebalanceMode
impl Clone for RebalanceMode
Source§fn clone(&self) -> RebalanceMode
fn clone(&self) -> RebalanceMode
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 RebalanceMode
impl Debug for RebalanceMode
Source§impl PartialEq for RebalanceMode
impl PartialEq for RebalanceMode
impl Eq for RebalanceMode
impl StructuralPartialEq for RebalanceMode
Auto Trait Implementations§
impl Freeze for RebalanceMode
impl RefUnwindSafe for RebalanceMode
impl Send for RebalanceMode
impl Sync for RebalanceMode
impl Unpin for RebalanceMode
impl UnsafeUnpin for RebalanceMode
impl UnwindSafe for RebalanceMode
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