Skip to main content

nextcloud_trashbin/
lib.rs

1//! Nextcloud Trashbin WebDAV API client.
2//!
3//! Provides [`TrashClient`] for interacting with a user's trashbin via WebDAV,
4//! and [`TrashItem`] representing deleted files and folders.
5//!
6//! Endpoints wrapped:
7//! - `PROPFIND /remote.php/dav/trashbin/{user}/trash/` to list deleted items
8//! - `MOVE /remote.php/dav/trashbin/{user}/trash/{id}` to restore an item
9//! - `DELETE /remote.php/dav/trashbin/{user}/trash/{id}` to permanently delete an item
10//! - `DELETE /remote.php/dav/trashbin/{user}/trash/` to empty the trashbin
11//!
12//! Official documentation:
13//! <https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/trashbin.html>
14
15#![deny(missing_docs)]
16#![forbid(unsafe_code)]
17
18mod client;
19mod item;
20mod path;
21mod propfind;
22
23#[cfg(test)]
24mod tests;
25
26pub use client::TrashClient;
27pub use item::TrashItem;