mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 02:22:21 +00:00
MKCALENDAR: Add supported-calendar-component-set
This commit is contained in:
@@ -4,6 +4,7 @@ use actix_web::web::{Data, Path};
|
|||||||
use actix_web::HttpResponse;
|
use actix_web::HttpResponse;
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use rustical_auth::{AuthInfoExtractor, CheckAuthentication};
|
use rustical_auth::{AuthInfoExtractor, CheckAuthentication};
|
||||||
|
use rustical_dav::xml::tag_list::TagList;
|
||||||
use rustical_store::calendar::{Calendar, CalendarStore};
|
use rustical_store::calendar::{Calendar, CalendarStore};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
@@ -15,6 +16,20 @@ pub struct Resourcetype {
|
|||||||
collection: Option<()>,
|
collection: Option<()>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||||
|
#[serde(rename_all = "kebab-case")]
|
||||||
|
pub struct CalendarComponentElement {
|
||||||
|
#[serde(rename = "@name")]
|
||||||
|
name: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||||
|
#[serde(rename_all = "kebab-case")]
|
||||||
|
pub struct SupportedCalendarComponentSetElement {
|
||||||
|
#[serde(flatten)]
|
||||||
|
comp: Vec<CalendarComponentElement>,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||||
#[serde(rename_all = "kebab-case")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
pub struct MkcolCalendarProp {
|
pub struct MkcolCalendarProp {
|
||||||
@@ -23,6 +38,7 @@ pub struct MkcolCalendarProp {
|
|||||||
calendar_description: Option<String>,
|
calendar_description: Option<String>,
|
||||||
calendar_color: Option<String>,
|
calendar_color: Option<String>,
|
||||||
calendar_timezone: Option<String>,
|
calendar_timezone: Option<String>,
|
||||||
|
supported_calendar_component_set: Option<SupportedCalendarComponentSetElement>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||||
|
|||||||
Reference in New Issue
Block a user