mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 18:52:26 +00:00
remove unnecessary enumproperty trait
This commit is contained in:
@@ -10,7 +10,7 @@ use rustical_dav::{
|
||||
use rustical_store::calendar::{Calendar, CalendarStore};
|
||||
use serde::Serialize;
|
||||
use std::sync::Arc;
|
||||
use strum::{EnumProperty, EnumString, IntoStaticStr, VariantNames};
|
||||
use strum::{EnumString, IntoStaticStr, VariantNames};
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
pub struct CalendarResource<C: CalendarStore + ?Sized> {
|
||||
@@ -117,20 +117,16 @@ impl Default for UserPrivilegeSet {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(EnumString, Debug, VariantNames, IntoStaticStr, EnumProperty, Clone)]
|
||||
#[derive(EnumString, Debug, VariantNames, IntoStaticStr, Clone)]
|
||||
#[strum(serialize_all = "kebab-case")]
|
||||
pub enum CalendarProp {
|
||||
Resourcetype,
|
||||
CurrentUserPrincipal,
|
||||
Owner,
|
||||
Displayname,
|
||||
// #[strum(props(tagname = "IC:calendar-color"))]
|
||||
CalendarColor,
|
||||
// #[strum(props(tagname = "C:calendar-description"))]
|
||||
CalendarDescription,
|
||||
// #[strum(props(tagname = "C:supported-calendar-component-set"))]
|
||||
SupportedCalendarComponentSet,
|
||||
// #[strum(props(tagname = "C:supported-calendar-data"))]
|
||||
SupportedCalendarData,
|
||||
Getcontenttype,
|
||||
CurrentUserPrivilegeSet,
|
||||
|
||||
Reference in New Issue
Block a user