use std::collections::HashMap; mod view_table; #[derive(Clone, Debug, Default)] pub struct Table where Ix: Clone + std::fmt::Debug, { pub cols: Vec>, pub rows: Vec>, } #[derive(Clone, Debug)] pub enum Value { String(String), Currency(i32), } #[derive(Clone, Debug)] pub struct Column where Ix: Clone + std::fmt::Debug, { pub index: Ix, pub name: String, } impl Column where Ix: Clone + std::fmt::Debug, { pub fn new(index: Ix, name: &str) -> Self { Self { index, name: name.to_string(), } } } #[derive(Clone, Debug)] pub enum Message {}