use crate::dsl::ast::{Record, Symbol};
pub struct AssetMetric {
pub total_purchase: f64,
pub total_sale: f64,
pub value: f64,
pub profit: f64,
}
#[derive(Debug, Clone)]
pub struct RecordOutput {
pub program: Record,
pub total_purchase: f64,
pub total_sale: f64,
pub value: f64,
pub profit: f64,
}
impl RecordOutput {
pub fn new(program: Record) -> Self {
Self {
program,
total_purchase: 0.0,
total_sale: 0.0,
value: 0.0,
profit: 0.0,
}
}
}
pub struct DefineOutput {}
struct PlanSnapshot {}
struct AssetSnapshot {
date: String,
symbol: Symbol,
}
pub enum Output {
Record(RecordOutput),
Define(DefineOutput),
}