Skip to main content

nextcloud_versions/
lib.rs

1//! Nextcloud WebDAV file versions client.
2//!
3//! Provides operations for listing revisions of a file, downloading past revision
4//! bytes, and restoring an older revision via Nextcloud's WebDAV versions endpoints.
5//!
6//! # Endpoints
7//!
8//! - Root path: `/remote.php/dav/versions/{user}/versions/{file_id}`
9//! - `PROPFIND` lists previous revisions of a file with their metadata.
10//! - `GET` downloads the bytes of a specific revision.
11//! - `MOVE` restores a revision to `/remote.php/dav/versions/{user}/restore/{file_id}`.
12//!
13//! All operations are carried out through [`VersionsClient`].
14#![deny(missing_docs)]
15#![forbid(unsafe_code)]
16
17mod client;
18mod decode;
19mod validation;
20mod version;
21
22pub use client::VersionsClient;
23pub use version::FileVersion;