mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 21:42:34 +00:00
Remove unnecessary traits
This commit is contained in:
@@ -5,11 +5,11 @@ use anyhow::anyhow;
|
|||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use rustical_auth::AuthInfo;
|
use rustical_auth::AuthInfo;
|
||||||
use rustical_dav::resource::{InvalidProperty, Resource, ResourceService};
|
use rustical_dav::resource::{InvalidProperty, Resource, ResourceService};
|
||||||
use rustical_dav::xml_snippets::HrefElement;
|
use rustical_dav::xml::HrefElement;
|
||||||
use rustical_store::CalendarStore;
|
use rustical_store::CalendarStore;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use strum::{AsRefStr, EnumString, VariantNames};
|
use strum::{EnumString, VariantNames};
|
||||||
use tokio::sync::RwLock;
|
use tokio::sync::RwLock;
|
||||||
|
|
||||||
use crate::calendar::resource::CalendarFile;
|
use crate::calendar::resource::CalendarFile;
|
||||||
@@ -54,7 +54,7 @@ impl InvalidProperty for PrincipalProp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(EnumString, Debug, VariantNames, AsRefStr, Clone)]
|
#[derive(EnumString, Debug, VariantNames, Clone)]
|
||||||
#[strum(serialize_all = "kebab-case")]
|
#[strum(serialize_all = "kebab-case")]
|
||||||
pub enum PrincipalPropName {
|
pub enum PrincipalPropName {
|
||||||
Resourcetype,
|
Resourcetype,
|
||||||
|
|||||||
@@ -3,16 +3,16 @@ use actix_web::HttpRequest;
|
|||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use rustical_auth::AuthInfo;
|
use rustical_auth::AuthInfo;
|
||||||
use rustical_dav::resource::{InvalidProperty, Resource, ResourceService};
|
use rustical_dav::resource::{InvalidProperty, Resource, ResourceService};
|
||||||
use rustical_dav::xml_snippets::HrefElement;
|
use rustical_dav::xml::HrefElement;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use strum::{EnumString, IntoStaticStr, VariantNames};
|
use strum::{EnumString, VariantNames};
|
||||||
|
|
||||||
pub struct RootResource {
|
pub struct RootResource {
|
||||||
principal: String,
|
principal: String,
|
||||||
path: String,
|
path: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(EnumString, Debug, VariantNames, IntoStaticStr, Clone)]
|
#[derive(EnumString, Debug, VariantNames, Clone)]
|
||||||
#[strum(serialize_all = "kebab-case")]
|
#[strum(serialize_all = "kebab-case")]
|
||||||
pub enum RootPropName {
|
pub enum RootPropName {
|
||||||
Resourcetype,
|
Resourcetype,
|
||||||
|
|||||||
Reference in New Issue
Block a user