pub struct PutBack {
pub trash_name: String,
pub original_name: Option<String>,
pub original_location: Option<String>,
}Expand description
A recovered macOS put-back record: an item in the Trash together with where it came from.
Fields§
§trash_name: StringThe item’s current name inside the Trash (the .DS_Store record key).
Finder de-duplicates colliding names, so this need not equal
original_name.
original_name: Option<String>The original filename at deletion time (ptbN), if recorded.
original_location: Option<String>The original parent directory (ptbL) verbatim, in the stored
firmlink form (System/Volumes/Data/…), if recorded.
Implementations§
Trait Implementations§
impl Eq for PutBack
impl StructuralPartialEq for PutBack
Auto Trait Implementations§
impl Freeze for PutBack
impl RefUnwindSafe for PutBack
impl Send for PutBack
impl Sync for PutBack
impl Unpin for PutBack
impl UnsafeUnpin for PutBack
impl UnwindSafe for PutBack
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