excel_cli/actions/
column.rs1use super::{ActionType, Command};
2use crate::excel::Cell;
3
4#[derive(Clone)]
5pub struct ColumnAction {
6 pub sheet_index: usize,
7 pub sheet_name: String,
8 pub col: usize,
9 pub column_data: Vec<Cell>,
10 pub column_width: usize,
11}
12
13impl Command for ColumnAction {
14 fn action_type(&self) -> ActionType {
15 ActionType::DeleteColumn
16 }
17}
18
19#[derive(Clone)]
20pub struct MultiColumnAction {
21 pub sheet_index: usize,
22 pub sheet_name: String,
23 pub start_col: usize,
24 pub end_col: usize,
25 pub columns_data: Vec<Vec<Cell>>,
26 pub column_widths: Vec<usize>,
27}
28
29impl Command for MultiColumnAction {
30 fn action_type(&self) -> ActionType {
31 ActionType::DeleteMultiColumns
32 }
33}