pub struct TrashEntry {
pub info_path: PathBuf,
pub content_path: Option<PathBuf>,
}Expand description
A trashed item discovered by scanning a trash directory: its info/ metadata
file paired with its files/ content (if the content is still present).
Fields§
§info_path: PathBufThe info/<name>.trashinfo metadata file path.
content_path: Option<PathBuf>The paired files/<name> content path, if it still exists. A trashed
directory is a directory here, so existence — not file-ness — is checked.
Trait Implementations§
Source§impl Clone for TrashEntry
impl Clone for TrashEntry
Source§fn clone(&self) -> TrashEntry
fn clone(&self) -> TrashEntry
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 TrashEntry
impl Debug for TrashEntry
impl Eq for TrashEntry
Source§impl PartialEq for TrashEntry
impl PartialEq for TrashEntry
Source§fn eq(&self, other: &TrashEntry) -> bool
fn eq(&self, other: &TrashEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrashEntry
Auto Trait Implementations§
impl Freeze for TrashEntry
impl RefUnwindSafe for TrashEntry
impl Send for TrashEntry
impl Sync for TrashEntry
impl Unpin for TrashEntry
impl UnsafeUnpin for TrashEntry
impl UnwindSafe for TrashEntry
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