#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct InvestmentResult {
#[serde(rename = "priceAvgInvestedValue")]
pub invested_value: f32,
#[serde(rename = "priceAvgResult")]
pub result: f32,
#[serde(rename = "priceAvgResultCoef")]
pub result_coef: f32,
#[serde(rename = "priceAvgValue")]
pub value: f32,
}
impl InvestmentResult {
#[must_use]
pub const fn new() -> Self {
Self {
invested_value: 0.0,
result: 0.0,
result_coef: 0.0,
value: 0.0,
}
}
}
impl Default for InvestmentResult {
fn default() -> Self {
Self::new()
}
}