pub struct StrategyAllocation {
pub strategy_id: StrategyId,
pub budgets: HashMap<AssetId, Decimal>,
}Expand description
Per-strategy allocation/budget
Fields§
§strategy_id: StrategyIdStrategy that owns the allocation.
budgets: HashMap<AssetId, Decimal>Budgeted amount by asset.
Trait Implementations§
Source§impl Clone for StrategyAllocation
impl Clone for StrategyAllocation
Source§fn clone(&self) -> StrategyAllocation
fn clone(&self) -> StrategyAllocation
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 StrategyAllocation
impl RefUnwindSafe for StrategyAllocation
impl Send for StrategyAllocation
impl Sync for StrategyAllocation
impl Unpin for StrategyAllocation
impl UnsafeUnpin for StrategyAllocation
impl UnwindSafe for StrategyAllocation
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