diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-01 10:12:19 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-01 10:12:19 +0100 |
commit | 929a185f371a7f369c4437d47b5c9e9f414678cf (patch) | |
tree | 5f1d6a629d360cadcec990cf8f2a60ab94d7df5f /src/dav/calencoder.rs | |
parent | 8691c98f44762d518ad0d34ba714180c79a9e506 (diff) | |
download | aerogramme-929a185f371a7f369c4437d47b5c9e9f414678cf.tar.gz aerogramme-929a185f371a7f369c4437d47b5c9e9f414678cf.zip |
Add a property hook
Diffstat (limited to 'src/dav/calencoder.rs')
-rw-r--r-- | src/dav/calencoder.rs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/dav/calencoder.rs b/src/dav/calencoder.rs index 378d2bd..14b7903 100644 --- a/src/dav/calencoder.rs +++ b/src/dav/calencoder.rs @@ -19,6 +19,10 @@ impl Context for CalExtension { async fn hook_error(&self, err: &Violation, xml: &mut Writer<impl AsyncWrite+Unpin>) -> Result<(), QError> { err.write(xml, self.child()).await } + + async fn hook_property(&self, prop: &Self::Property, xml: &mut Writer<impl AsyncWrite+Unpin>) -> Result<(), QError> { + prop.write(xml, self.child()).await + } } impl CalExtension { @@ -47,14 +51,14 @@ impl QuickWritable<CalExtension> for Violation { } } -/* - <?xml version="1.0" encoding="utf-8" ?> - <D:error> - <C:supported-filter> - <C:prop-filter name="X-ABC-GUID"/> - </C:supported-filter> - </D:error> -*/ + +impl QuickWritable<CalExtension> for Property { + async fn write(&self, xml: &mut Writer<impl AsyncWrite+Unpin>, ctx: CalExtension) -> Result<(), QError> { + unimplemented!(); + } +} + + #[cfg(test)] mod tests { |