pub enum HistoryOperation {
Create {
path: PathBuf,
},
Delete {
path: PathBuf,
trash_id: Option<Uuid>,
},
Move {
src: PathBuf,
dst: PathBuf,
},
Copy {
src: PathBuf,
dst: PathBuf,
},
Write {
path: PathBuf,
append: bool,
},
Restore {
trash_id: Uuid,
path: PathBuf,
},
}Expand description
Type of operation for history logging.
Variants§
Trait Implementations§
Source§impl Clone for HistoryOperation
impl Clone for HistoryOperation
Source§fn clone(&self) -> HistoryOperation
fn clone(&self) -> HistoryOperation
Returns a duplicate of the value. Read more
1.0.0 · 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 HistoryOperation
impl Debug for HistoryOperation
Source§impl<'de> Deserialize<'de> for HistoryOperation
impl<'de> Deserialize<'de> for HistoryOperation
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 HistoryOperation
impl RefUnwindSafe for HistoryOperation
impl Send for HistoryOperation
impl Sync for HistoryOperation
impl Unpin for HistoryOperation
impl UnwindSafe for HistoryOperation
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