mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
frontend: Add basic information about collections
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::{Calendar, error::Error};
|
||||
use crate::{Calendar, CollectionMetadata, error::Error};
|
||||
use async_trait::async_trait;
|
||||
use chrono::NaiveDate;
|
||||
use rustical_ical::CalendarObject;
|
||||
@@ -53,6 +53,12 @@ pub trait CalendarStore: Send + Sync + 'static {
|
||||
self.get_objects(principal, cal_id).await
|
||||
}
|
||||
|
||||
async fn calendar_metadata(
|
||||
&self,
|
||||
principal: &str,
|
||||
cal_id: &str,
|
||||
) -> Result<CollectionMetadata, Error>;
|
||||
|
||||
async fn get_objects(
|
||||
&self,
|
||||
principal: &str,
|
||||
|
||||
Reference in New Issue
Block a user