mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 08:12:24 +00:00
DAV Push: Add supported-triggers
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use rustical_dav::header::Depth;
|
||||
use rustical_xml::XmlSerialize;
|
||||
|
||||
#[derive(Debug, Clone, XmlSerialize, PartialEq)]
|
||||
@@ -20,3 +21,24 @@ impl Default for Transports {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(XmlSerialize, PartialEq, Clone)]
|
||||
pub struct SupportedTriggers(#[xml(flatten, ty = "untagged")] pub Vec<SupportedTrigger>);
|
||||
|
||||
#[derive(XmlSerialize, PartialEq, Clone)]
|
||||
pub enum SupportedTrigger {
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAVPUSH")]
|
||||
ContentUpdate(ContentUpdate),
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAVPUSH")]
|
||||
PropertyUpdate(PropertyUpdate),
|
||||
}
|
||||
|
||||
#[derive(XmlSerialize, PartialEq, Clone)]
|
||||
pub struct ContentUpdate(
|
||||
#[xml(rename = b"depth", ns = "rustical_dav::namespace::NS_DAV")] pub Depth,
|
||||
);
|
||||
|
||||
#[derive(XmlSerialize, PartialEq, Clone)]
|
||||
pub struct PropertyUpdate(
|
||||
#[xml(rename = b"depth", ns = "rustical_dav::namespace::NS_DAV")] pub Depth,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user