pub enum CsvDiffOp {
AddRow {
position: usize,
values: HashMap<String, String>,
},
RemoveRow {
position: usize,
key: Option<String>,
},
ModifyRow {
position: usize,
key: Option<String>,
changes: Vec<CellChange>,
},
MoveRow {
from_position: usize,
to_position: usize,
key: Option<String>,
},
AddColumn {
name: String,
position: usize,
},
RemoveColumn {
name: String,
position: usize,
},
RenameColumn {
old_name: String,
new_name: String,
position: usize,
},
}Expand description
A single CSV diff operation
Variants§
AddRow
Row added at position
Fields
RemoveRow
Row removed from position
Fields
ModifyRow
Row modified
Fields
§
changes: Vec<CellChange>List of cell changes in this row
MoveRow
Row moved (content-addressed only)
Fields
AddColumn
Column added
RemoveColumn
Column removed
RenameColumn
Column renamed
Trait Implementations§
impl Eq for CsvDiffOp
impl StructuralPartialEq for CsvDiffOp
Auto Trait Implementations§
impl Freeze for CsvDiffOp
impl RefUnwindSafe for CsvDiffOp
impl Send for CsvDiffOp
impl Sync for CsvDiffOp
impl Unpin for CsvDiffOp
impl UnwindSafe for CsvDiffOp
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