pub struct TrashItem {
pub id: String,
pub href: String,
pub filename: String,
pub original_location: String,
pub deletion_time: Option<u64>,
pub last_modified: Option<String>,
pub is_collection: bool,
}Expand description
A deleted item in a user’s Nextcloud trashbin.
Returned by TrashClient::list. Holds the
metadata reported by Nextcloud’s WebDAV trashbin endpoint, including its
identifier, original filename, original location, deletion timestamp,
and WebDAV properties.
Fields§
§id: StringIdentifier of the trash item (the path segment in the trashbin URL).
href: StringWebDAV resource href reported by the server.
filename: StringOriginal file or directory name before deletion (trashbin-filename).
original_location: StringPath where the item resided before deletion (trashbin-original-location).
deletion_time: Option<u64>Unix timestamp (in seconds) when the item was moved to the trash (trashbin-deletion-time).
last_modified: Option<String>Last modified time as reported by the server (d:getlastmodified).
is_collection: boolWhether the resource is a collection/folder (<d:collection/>).
Implementations§
Source§impl TrashItem
impl TrashItem
Sourcepub fn original_filename(&self) -> &str
pub fn original_filename(&self) -> &str
Original filename before deletion (alias for filename).
Sourcepub fn original_location(&self) -> &str
pub fn original_location(&self) -> &str
Original path where the item resided before deletion.
Sourcepub fn deletion_time(&self) -> Option<u64>
pub fn deletion_time(&self) -> Option<u64>
Unix timestamp when the item was deleted, if available.
Sourcepub fn last_modified(&self) -> Option<&str>
pub fn last_modified(&self) -> Option<&str>
Last modified HTTP date string, if available.
Sourcepub fn is_collection(&self) -> bool
pub fn is_collection(&self) -> bool
Whether the item is a collection (folder).