mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 10:32:19 +00:00
xml: Replace Unit with ()
This commit is contained in:
@@ -3,14 +3,14 @@ use actix_web::web::{Data, Path};
|
||||
use actix_web::HttpResponse;
|
||||
use rustical_store::auth::User;
|
||||
use rustical_store::{Calendar, CalendarStore};
|
||||
use rustical_xml::{Unit, XmlDeserialize, XmlDocument, XmlRootTag};
|
||||
use rustical_xml::{XmlDeserialize, XmlDocument, XmlRootTag};
|
||||
use tracing::instrument;
|
||||
use tracing_actix_web::RootSpan;
|
||||
|
||||
#[derive(XmlDeserialize, Clone, Debug)]
|
||||
pub struct Resourcetype {
|
||||
calendar: Option<Unit>,
|
||||
collection: Option<Unit>,
|
||||
calendar: Option<()>,
|
||||
collection: Option<()>,
|
||||
}
|
||||
|
||||
#[derive(XmlDeserialize, Clone, Debug)]
|
||||
|
||||
@@ -6,7 +6,7 @@ use rustical_dav::{
|
||||
xml::{MultistatusElement, PropElement, PropfindType},
|
||||
};
|
||||
use rustical_store::{auth::User, calendar::UtcDateTime, CalendarObject, CalendarStore};
|
||||
use rustical_xml::{Unit, XmlDeserialize};
|
||||
use rustical_xml::XmlDeserialize;
|
||||
|
||||
use crate::{
|
||||
calendar_object::resource::{CalendarObjectProp, CalendarObjectResource},
|
||||
@@ -27,7 +27,7 @@ pub(crate) struct TimeRangeElement {
|
||||
#[derive(XmlDeserialize, Clone, Debug, PartialEq)]
|
||||
#[allow(dead_code)]
|
||||
struct ParamFilterElement {
|
||||
is_not_defined: Option<Unit>,
|
||||
is_not_defined: Option<()>,
|
||||
text_match: Option<TextMatchElement>,
|
||||
|
||||
#[xml(ty = "attr")]
|
||||
@@ -46,7 +46,7 @@ struct TextMatchElement {
|
||||
#[derive(XmlDeserialize, Clone, Debug, PartialEq)]
|
||||
#[allow(dead_code)]
|
||||
pub(crate) struct PropFilterElement {
|
||||
is_not_defined: Option<Unit>,
|
||||
is_not_defined: Option<()>,
|
||||
time_range: Option<TimeRangeElement>,
|
||||
text_match: Option<TextMatchElement>,
|
||||
#[xml(flatten)]
|
||||
@@ -57,7 +57,7 @@ pub(crate) struct PropFilterElement {
|
||||
#[allow(dead_code)]
|
||||
// https://datatracker.ietf.org/doc/html/rfc4791#section-9.7.1
|
||||
pub(crate) struct CompFilterElement {
|
||||
pub(crate) is_not_defined: Option<Unit>,
|
||||
pub(crate) is_not_defined: Option<()>,
|
||||
pub(crate) time_range: Option<TimeRangeElement>,
|
||||
#[xml(flatten)]
|
||||
pub(crate) prop_filter: Vec<PropFilterElement>,
|
||||
|
||||
Reference in New Issue
Block a user