mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 00:02:20 +00:00
Rename propfind to xml_snippets
This commit is contained in:
@@ -17,11 +17,11 @@ use tokio::sync::RwLock;
|
|||||||
pub mod depth_extractor;
|
pub mod depth_extractor;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod namespace;
|
pub mod namespace;
|
||||||
mod propfind;
|
|
||||||
pub mod proptypes;
|
pub mod proptypes;
|
||||||
pub mod resource;
|
pub mod resource;
|
||||||
pub mod resources;
|
pub mod resources;
|
||||||
pub mod routes;
|
pub mod routes;
|
||||||
|
mod xml_snippets;
|
||||||
|
|
||||||
pub struct CalDavContext<C: CalendarStore> {
|
pub struct CalDavContext<C: CalendarStore> {
|
||||||
pub prefix: String,
|
pub prefix: String,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ use async_trait::async_trait;
|
|||||||
use quick_xml::Writer;
|
use quick_xml::Writer;
|
||||||
use rustical_auth::AuthInfo;
|
use rustical_auth::AuthInfo;
|
||||||
|
|
||||||
use crate::propfind::{write_invalid_props_response, write_propstat_response};
|
use crate::xml_snippets::{write_invalid_props_response, write_propstat_response};
|
||||||
|
|
||||||
// A resource is identified by a URI and has properties
|
// A resource is identified by a URI and has properties
|
||||||
// A resource can also be a collection
|
// A resource can also be a collection
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ use rustical_store::calendar::{Calendar, CalendarStore};
|
|||||||
use tokio::sync::RwLock;
|
use tokio::sync::RwLock;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
propfind::write_resourcetype,
|
|
||||||
proptypes::{write_href_prop, write_string_prop},
|
proptypes::{write_href_prop, write_string_prop},
|
||||||
resource::Resource,
|
resource::Resource,
|
||||||
|
xml_snippets::write_resourcetype,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct CalendarResource<C: CalendarStore> {
|
pub struct CalendarResource<C: CalendarStore> {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use crate::{propfind::write_resourcetype, proptypes::write_href_prop, resource::Resource};
|
use crate::{proptypes::write_href_prop, resource::Resource, xml_snippets::write_resourcetype};
|
||||||
use actix_web::{web::Data, HttpRequest};
|
use actix_web::{web::Data, HttpRequest};
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use crate::{propfind::write_resourcetype, resource::Resource};
|
use crate::{resource::Resource, xml_snippets::write_resourcetype};
|
||||||
use actix_web::HttpRequest;
|
use actix_web::HttpRequest;
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use crate::namespace::Namespace;
|
use crate::namespace::Namespace;
|
||||||
use crate::propfind::generate_multistatus;
|
|
||||||
use crate::resource::HandlePropfind;
|
use crate::resource::HandlePropfind;
|
||||||
use crate::resources::event::EventResource;
|
use crate::resources::event::EventResource;
|
||||||
|
use crate::xml_snippets::generate_multistatus;
|
||||||
use crate::{CalDavContext, Error};
|
use crate::{CalDavContext, Error};
|
||||||
use actix_web::http::header::ContentType;
|
use actix_web::http::header::ContentType;
|
||||||
use actix_web::web::{Data, Path};
|
use actix_web::web::{Data, Path};
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
use crate::depth_extractor::Depth;
|
use crate::depth_extractor::Depth;
|
||||||
use crate::error::Error;
|
use crate::error::Error;
|
||||||
use crate::namespace::Namespace;
|
use crate::namespace::Namespace;
|
||||||
use crate::propfind::generate_multistatus;
|
|
||||||
use crate::resource::{HandlePropfind, Resource};
|
use crate::resource::{HandlePropfind, Resource};
|
||||||
|
use crate::xml_snippets::generate_multistatus;
|
||||||
use crate::CalDavContext;
|
use crate::CalDavContext;
|
||||||
use actix_web::http::header::ContentType;
|
use actix_web::http::header::ContentType;
|
||||||
use actix_web::web::{Data, Path};
|
use actix_web::web::{Data, Path};
|
||||||
|
|||||||
Reference in New Issue
Block a user