mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
fixing supported-calendar-component
This commit is contained in:
@@ -22,7 +22,10 @@ pub struct CalendarResource<C: CalendarStore + ?Sized> {
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub struct SupportedCalendarComponent(#[serde(rename = "@name")] pub &'static str);
|
||||
pub struct SupportedCalendarComponent {
|
||||
#[serde(rename = "@name")]
|
||||
pub name: &'static str,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
@@ -210,7 +213,7 @@ impl<C: CalendarStore + ?Sized> Resource for CalendarResource<C> {
|
||||
CalendarProp::SupportedCalendarComponentSet => {
|
||||
Ok(CalendarPropResponse::SupportedCalendarComponentSet(
|
||||
SupportedCalendarComponentSet {
|
||||
comp: vec![SupportedCalendarComponent("VEVENT")],
|
||||
comp: vec![SupportedCalendarComponent { name: "VEVENT" }],
|
||||
},
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user