aboutsummaryrefslogtreecommitdiff
path: root/aero-dav/src/versioningtypes.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-05-28 12:38:22 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-05-28 12:38:22 +0200
commit1c9d2eab6976993c85eaa3e8eb4f1c433258fd16 (patch)
tree6e29fdc6a465295f2142163744e8851a1cb5e95a /aero-dav/src/versioningtypes.rs
parent5b1da2a33b265b674a130a90377c289faea7a210 (diff)
downloadaerogramme-1c9d2eab6976993c85eaa3e8eb4f1c433258fd16.tar.gz
aerogramme-1c9d2eab6976993c85eaa3e8eb4f1c433258fd16.zip
parse property for sync + versioning
Diffstat (limited to 'aero-dav/src/versioningtypes.rs')
-rw-r--r--aero-dav/src/versioningtypes.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/aero-dav/src/versioningtypes.rs b/aero-dav/src/versioningtypes.rs
index ba64b05..1f8d1cf 100644
--- a/aero-dav/src/versioningtypes.rs
+++ b/aero-dav/src/versioningtypes.rs
@@ -22,6 +22,26 @@ use super::types as dav;
// ANY value: a report element type
#[derive(Debug, PartialEq, Clone)]
+pub enum PropertyRequest {
+ SupportedReportSet,
+}
+
+#[derive(Debug, PartialEq, Clone)]
+pub enum Property<E: dav::Extension> {
+ SupportedReportSet(Vec<SupportedReport<E>>),
+}
+
+#[derive(Debug, PartialEq, Clone)]
+pub struct SupportedReport<E: dav::Extension>(pub ReportName<E>);
+
+#[derive(Debug, PartialEq, Clone)]
+pub enum ReportName<E: dav::Extension> {
+ VersionTree,
+ ExpandProperty,
+ Extension(E::ReportTypeName),
+}
+
+#[derive(Debug, PartialEq, Clone)]
pub enum Report<E: dav::Extension> {
VersionTree, // Not yet implemented
ExpandProperty, // Not yet implemented