aboutsummaryrefslogtreecommitdiff
path: root/aero-dav/src/caldecoder.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-03-08 11:34:24 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-03-08 11:34:24 +0100
commit4d65366ff368cc9ea35115cb7e701bfebb166bc6 (patch)
tree549ed84e4da71c7768b81535f7b564be31da37a1 /aero-dav/src/caldecoder.rs
parentb9f32d720ae5ec60cadeb492af781ade48cd6cbf (diff)
downloadaerogramme-4d65366ff368cc9ea35115cb7e701bfebb166bc6.tar.gz
aerogramme-4d65366ff368cc9ea35115cb7e701bfebb166bc6.zip
Fixed some parsing bugs
Diffstat (limited to 'aero-dav/src/caldecoder.rs')
-rw-r--r--aero-dav/src/caldecoder.rs37
1 files changed, 36 insertions, 1 deletions
diff --git a/aero-dav/src/caldecoder.rs b/aero-dav/src/caldecoder.rs
index fb840d6..3aae4ad 100644
--- a/aero-dav/src/caldecoder.rs
+++ b/aero-dav/src/caldecoder.rs
@@ -1,9 +1,39 @@
-//use super::types as dav;
+use super::types as dav;
use super::caltypes::*;
use super::xml;
use super::error;
// ---- ROOT ELEMENTS ---
+impl<E: dav::Extension> xml::QRead<MkCalendar<E>> for MkCalendar<E> {
+ async fn qread(_xml: &mut xml::Reader<impl xml::IRead>) -> Result<Self, error::ParsingError> {
+ unreachable!();
+ }
+}
+
+impl<E: dav::Extension, N: xml::Node<N>> xml::QRead<MkCalendarResponse<E,N>> for MkCalendarResponse<E,N> {
+ async fn qread(_xml: &mut xml::Reader<impl xml::IRead>) -> Result<Self, error::ParsingError> {
+ unreachable!();
+ }
+}
+
+impl<E: dav::Extension> xml::QRead<CalendarQuery<E>> for CalendarQuery<E> {
+ async fn qread(_xml: &mut xml::Reader<impl xml::IRead>) -> Result<Self, error::ParsingError> {
+ unreachable!();
+ }
+}
+
+impl<E: dav::Extension> xml::QRead<CalendarMultiget<E>> for CalendarMultiget<E> {
+ async fn qread(_xml: &mut xml::Reader<impl xml::IRead>) -> Result<Self, error::ParsingError> {
+ unreachable!();
+ }
+}
+
+impl xml::QRead<FreeBusyQuery> for FreeBusyQuery {
+ async fn qread(_xml: &mut xml::Reader<impl xml::IRead>) -> Result<Self, error::ParsingError> {
+ unreachable!();
+ }
+}
+
// ---- EXTENSIONS ---
impl xml::QRead<Violation> for Violation {
@@ -31,3 +61,8 @@ impl xml::QRead<ResourceType> for ResourceType {
}
// ---- INNER XML ----
+impl xml::QRead<SupportedCollation> for SupportedCollation {
+ async fn qread(_xml: &mut xml::Reader<impl xml::IRead>) -> Result<Self, error::ParsingError> {
+ unreachable!();
+ }
+}