pub enum UndoData {
Create {
path: PathBuf,
},
Delete {
trash_id: Uuid,
},
Move {
src: PathBuf,
dst: PathBuf,
},
Copy {
path: PathBuf,
},
}Expand description
Data needed to undo an operation.
Variants§
Create
Undo a create by deleting the file
Delete
Undo a delete by restoring from trash
Move
Undo a move by moving back
Copy
Undo a copy by deleting the copy
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UndoData
impl<'de> Deserialize<'de> for UndoData
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 UndoData
impl RefUnwindSafe for UndoData
impl Send for UndoData
impl Sync for UndoData
impl Unpin for UndoData
impl UnwindSafe for UndoData
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