aboutsummaryrefslogtreecommitdiff
path: root/src/dav/types.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-03-01 14:28:36 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-03-01 14:28:36 +0100
commit2b30c97084a63afa53278e35dbbcc620192c8c3f (patch)
tree90fe32c42ec21eb586f3fd3011d7c2f526237a0a /src/dav/types.rs
parent8d7c8713b69883632cad84521d604cb9eb9a40d4 (diff)
downloadaerogramme-2b30c97084a63afa53278e35dbbcc620192c8c3f.tar.gz
aerogramme-2b30c97084a63afa53278e35dbbcc620192c8c3f.zip
fully serialize webdav core?
Diffstat (limited to 'src/dav/types.rs')
-rw-r--r--src/dav/types.rs52
1 files changed, 28 insertions, 24 deletions
diff --git a/src/dav/types.rs b/src/dav/types.rs
index 7f22385..95fe749 100644
--- a/src/dav/types.rs
+++ b/src/dav/types.rs
@@ -39,17 +39,6 @@ pub struct ActiveLock {
pub lockroot: LockRoot,
}
-/// 14.2 allprop XML Element
-///
-/// Name: allprop
-///
-/// Purpose: Specifies that all names and values of dead properties and
-/// the live properties defined by this document existing on the
-/// resource are to be returned.
-///
-/// <!ELEMENT allprop EMPTY >
-pub struct AllProp{}
-
/// 14.3 collection XML Element
///
/// Name: collection
@@ -219,7 +208,7 @@ pub struct Href(pub String);
/// standards. This element MUST NOT contain text or mixed content.
///
/// <!ELEMENT include ANY >
-pub struct Include<T: Extension>(pub Vec<Property<T>>);
+pub struct Include<T: Extension>(pub Vec<PropertyRequest<T>>);
/// 14.9. location XML Element
///
@@ -401,6 +390,29 @@ pub enum PropertyUpdateItem<T: Extension> {
Set(Set<T>),
}
+/// 14.2 allprop XML Element
+///
+/// Name: allprop
+///
+/// Purpose: Specifies that all names and values of dead properties and
+/// the live properties defined by this document existing on the
+/// resource are to be returned.
+///
+/// <!ELEMENT allprop EMPTY >
+///
+/// ---
+///
+/// 14.21. propname XML Element
+///
+/// Name: propname
+///
+/// Purpose: Specifies that only a list of property names on the
+/// resource is to be returned.
+///
+/// <!ELEMENT propname EMPTY >
+///
+/// ---
+///
/// 14.20. propfind XML Element
///
/// Name: propfind
@@ -413,20 +425,12 @@ pub enum PropertyUpdateItem<T: Extension> {
///
/// <!ELEMENT propfind ( propname | (allprop, include?) | prop ) >
pub enum PropFind<T: Extension> {
- PropName(PropName),
- AllProp(AllProp, Option<Include<T>>),
- Prop(Prop<T>),
+ PropName,
+ AllProp(Option<Include<T>>),
+ Prop(Vec<PropertyRequest<T>>),
}
-/// 14.21. propname XML Element
-///
-/// Name: propname
-///
-/// Purpose: Specifies that only a list of property names on the
-/// resource is to be returned.
-///
-/// <!ELEMENT propname EMPTY >
-pub struct PropName {}
+
/// 14.22 propstat XML Element
///