pub struct TrashEntry {
pub id: Uuid,
pub original_path: PathBuf,
pub trash_path: PathBuf,
pub deleted_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub content_hash: String,
pub size: u64,
}Expand description
Entry in the trash directory.
Fields§
§id: UuidUnique identifier for this trash entry
original_path: PathBufOriginal path of the file
trash_path: PathBufPath in trash storage
deleted_at: DateTime<Utc>When the file was deleted
expires_at: DateTime<Utc>When the trash entry expires (auto-purge)
content_hash: StringBlake3 hash of the content
size: u64Original file size in bytes
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 · 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
Source§impl<'de> Deserialize<'de> for TrashEntry
impl<'de> Deserialize<'de> for TrashEntry
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 TrashEntry
impl RefUnwindSafe for TrashEntry
impl Send for TrashEntry
impl Sync for TrashEntry
impl Unpin 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