pub struct TargetAllocation {
pub symbol: String,
pub target_weight: f64,
pub min_weight: f64,
pub max_weight: f64,
}Expand description
Target allocation band for a single asset.
Fields§
§symbol: StringTicker symbol.
target_weight: f64Ideal portfolio weight (0.0–1.0).
min_weight: f64Lower drift band — weight below this triggers rebalancing.
max_weight: f64Upper drift band — weight above this triggers rebalancing.
Trait Implementations§
Source§impl Clone for TargetAllocation
impl Clone for TargetAllocation
Source§impl Debug for TargetAllocation
impl Debug for TargetAllocation
Source§impl PartialEq for TargetAllocation
impl PartialEq for TargetAllocation
impl StructuralPartialEq for TargetAllocation
Auto Trait Implementations§
impl Freeze for TargetAllocation
impl RefUnwindSafe for TargetAllocation
impl Send for TargetAllocation
impl Sync for TargetAllocation
impl Unpin for TargetAllocation
impl UnsafeUnpin for TargetAllocation
impl UnwindSafe for TargetAllocation
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