use chrono::{NaiveDateTime, Datelike};
#[derive(Clone)]
pub struct Input {
pub source: String,
pub amount:f64,
pub value: String
}
#[derive(Clone)]
pub struct Output {
pub destination: String,
pub amount:f64,
pub value: String
}
impl Output {
pub fn clone(&self) -> Self {
Output {
destination: self.destination.clone(),
amount: self.amount,
value: self.value.clone()
}
}
}
pub struct Transaction {
pub date: NaiveDateTime,
description: String,
inputs: Vec,
outputs:Vec