pub struct BudgetAllocationOutput {
pub allocations: Vec<CategoryAllocation>,
pub total_allocated: f64,
pub total_expected_return: f64,
pub budget_remaining: f64,
pub portfolio_roi: f64,
}Expand description
Output for budget allocation
Fields§
§allocations: Vec<CategoryAllocation>Allocations per category
total_allocated: f64Total budget allocated
total_expected_return: f64Total expected return
budget_remaining: f64Budget remaining (unallocated)
portfolio_roi: f64Overall portfolio ROI
Implementations§
Trait Implementations§
Source§impl Clone for BudgetAllocationOutput
impl Clone for BudgetAllocationOutput
Source§fn clone(&self) -> BudgetAllocationOutput
fn clone(&self) -> BudgetAllocationOutput
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 BudgetAllocationOutput
impl Debug for BudgetAllocationOutput
Source§impl Default for BudgetAllocationOutput
impl Default for BudgetAllocationOutput
Source§fn default() -> BudgetAllocationOutput
fn default() -> BudgetAllocationOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BudgetAllocationOutput
impl<'de> Deserialize<'de> for BudgetAllocationOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BudgetAllocationOutput
impl RefUnwindSafe for BudgetAllocationOutput
impl Send for BudgetAllocationOutput
impl Sync for BudgetAllocationOutput
impl Unpin for BudgetAllocationOutput
impl UnsafeUnpin for BudgetAllocationOutput
impl UnwindSafe for BudgetAllocationOutput
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