pub enum SheetAction {
SetCellSrc {
sheet_name: String,
col: usize,
row: usize,
src: String,
},
UpdateColName {
sheet_name: String,
col: usize,
name: String,
},
UpdateTableName {
old_name: String,
new_name: String,
},
InsertRow {
sheet_name: String,
index: usize,
},
DeleteRow {
sheet_name: String,
index: usize,
},
InsertCol {
sheet_name: String,
index: usize,
},
DeleteCol {
sheet_name: String,
index: usize,
},
AddTable {
sheet: Sheet,
},
DeleteTable {
sheet_name: String,
},
}Expand description
A single edit made to a workbook, recorded so a host can observe or replay it.
Sheet appends one of these to Sheet::uncommitted_actions for each edit.
Sheets are named rather than held by id, since an action is meant to
survive being written down and applied elsewhere.
“Table” in the variant names means a sheet, following this codebase’s
older informal naming – not an ExcelTable.
Variants§
SetCellSrc
A cell’s raw text was replaced.
Fields
UpdateColName
A column was renamed.
Fields
UpdateTableName
A sheet was renamed.
InsertRow
An empty row was inserted.
Fields
DeleteRow
A row was deleted.
Fields
InsertCol
An empty column was inserted.
Fields
DeleteCol
A column was deleted.
Fields
AddTable
A sheet was added to the workbook.
DeleteTable
A sheet was removed from the workbook.
Trait Implementations§
Source§impl Clone for SheetAction
impl Clone for SheetAction
Source§fn clone(&self) -> SheetAction
fn clone(&self) -> SheetAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SheetAction
impl Debug for SheetAction
Source§impl<'de> Deserialize<'de> for SheetAction
impl<'de> Deserialize<'de> for SheetAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SheetAction
impl RefUnwindSafe for SheetAction
impl Send for SheetAction
impl Sync for SheetAction
impl Unpin for SheetAction
impl UnsafeUnpin for SheetAction
impl UnwindSafe for SheetAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more