mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-22 23:39:34 +00:00
Move Resource and xml_snippets to dav crate
This commit is contained in:
@@ -8,11 +8,8 @@ use rustical_auth::AuthInfo;
|
||||
use rustical_store::calendar::{Calendar, CalendarStore};
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
use crate::{
|
||||
proptypes::{write_href_prop, write_string_prop},
|
||||
resource::Resource,
|
||||
xml_snippets::write_resourcetype,
|
||||
};
|
||||
use crate::proptypes::{write_href_prop, write_string_prop};
|
||||
use rustical_dav::{resource::Resource, xml_snippets::write_resourcetype};
|
||||
|
||||
pub struct CalendarResource<C: CalendarStore> {
|
||||
pub cal_store: Arc<RwLock<C>>,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::{proptypes::write_string_prop, resource::Resource};
|
||||
use crate::proptypes::write_string_prop;
|
||||
use actix_web::{web::Data, HttpRequest};
|
||||
use anyhow::{anyhow, Result};
|
||||
use async_trait::async_trait;
|
||||
use rustical_auth::AuthInfo;
|
||||
use rustical_dav::resource::Resource;
|
||||
use rustical_store::calendar::{CalendarStore, Event};
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
pub struct EventResource<C: CalendarStore> {
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::{proptypes::write_href_prop, resource::Resource, xml_snippets::write_resourcetype};
|
||||
use crate::proptypes::write_href_prop;
|
||||
use actix_web::{web::Data, HttpRequest};
|
||||
use anyhow::{anyhow, Result};
|
||||
use async_trait::async_trait;
|
||||
use quick_xml::events::BytesText;
|
||||
use rustical_auth::AuthInfo;
|
||||
use rustical_dav::{resource::Resource, xml_snippets::write_resourcetype};
|
||||
use rustical_store::calendar::CalendarStore;
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use crate::{resource::Resource, xml_snippets::write_resourcetype};
|
||||
use actix_web::HttpRequest;
|
||||
use anyhow::{anyhow, Result};
|
||||
use async_trait::async_trait;
|
||||
use quick_xml::events::BytesText;
|
||||
use rustical_auth::AuthInfo;
|
||||
use rustical_dav::{resource::Resource, xml_snippets::write_resourcetype};
|
||||
|
||||
pub struct RootResource {
|
||||
prefix: String,
|
||||
|
||||
Reference in New Issue
Block a user