use std::collections::HashMap; use bitcode::{Decode, Encode}; use crate::types::{Cell, Col, Row, SheetState, Style, Worksheet}; #[derive(Clone, Encode, Decode)] pub(crate) struct RowData { pub(crate) row: Option, pub(crate) data: HashMap, } #[derive(Clone, Encode, Decode)] pub(crate) struct ColumnData { pub(crate) column: Option, pub(crate) data: HashMap, } #[derive(Clone, Encode, Decode)] pub(crate) enum Diff { // Cell diffs SetCellValue { sheet: u32, row: i32, column: i32, new_value: String, old_value: Box>, }, CellClearContents { sheet: u32, row: i32, column: i32, old_value: Box>, }, CellClearAll { sheet: u32, row: i32, column: i32, old_value: Box>, old_style: Box