mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 17:12:22 +00:00
stores: Switch from dyn to impl and implement Sized
This commit is contained in:
@@ -24,7 +24,7 @@ pub(crate) struct CalendarMultigetRequest {
|
||||
pub(crate) href: Vec<String>,
|
||||
}
|
||||
|
||||
pub async fn get_objects_calendar_multiget<C: CalendarStore + ?Sized>(
|
||||
pub async fn get_objects_calendar_multiget<C: CalendarStore>(
|
||||
cal_query: &CalendarMultigetRequest,
|
||||
path: &str,
|
||||
principal: &str,
|
||||
@@ -52,7 +52,7 @@ pub async fn get_objects_calendar_multiget<C: CalendarStore + ?Sized>(
|
||||
Ok((result, not_found))
|
||||
}
|
||||
|
||||
pub async fn handle_calendar_multiget<C: CalendarStore + ?Sized>(
|
||||
pub async fn handle_calendar_multiget<C: CalendarStore>(
|
||||
cal_multiget: CalendarMultigetRequest,
|
||||
req: HttpRequest,
|
||||
user: &User,
|
||||
|
||||
@@ -175,7 +175,7 @@ pub struct CalendarQueryRequest {
|
||||
pub(crate) timezone_id: Option<String>,
|
||||
}
|
||||
|
||||
pub async fn get_objects_calendar_query<C: CalendarStore + ?Sized>(
|
||||
pub async fn get_objects_calendar_query<C: CalendarStore>(
|
||||
cal_query: &CalendarQueryRequest,
|
||||
principal: &str,
|
||||
cal_id: &str,
|
||||
@@ -188,7 +188,7 @@ pub async fn get_objects_calendar_query<C: CalendarStore + ?Sized>(
|
||||
Ok(objects)
|
||||
}
|
||||
|
||||
pub async fn handle_calendar_query<C: CalendarStore + ?Sized>(
|
||||
pub async fn handle_calendar_query<C: CalendarStore>(
|
||||
cal_query: CalendarQueryRequest,
|
||||
req: HttpRequest,
|
||||
user: &User,
|
||||
|
||||
@@ -22,7 +22,7 @@ pub(crate) enum ReportRequest {
|
||||
}
|
||||
|
||||
#[instrument(skip(req, cal_store))]
|
||||
pub async fn route_report_calendar<C: CalendarStore + ?Sized>(
|
||||
pub async fn route_report_calendar<C: CalendarStore>(
|
||||
path: Path<(String, String)>,
|
||||
body: String,
|
||||
user: User,
|
||||
|
||||
@@ -60,7 +60,7 @@ pub(crate) struct SyncCollectionRequest {
|
||||
pub(crate) limit: Option<u64>,
|
||||
}
|
||||
|
||||
pub async fn handle_sync_collection<C: CalendarStore + ?Sized>(
|
||||
pub async fn handle_sync_collection<C: CalendarStore>(
|
||||
sync_collection: SyncCollectionRequest,
|
||||
req: HttpRequest,
|
||||
user: &User,
|
||||
|
||||
Reference in New Issue
Block a user