store: Add update_calendar method

This commit is contained in:
Lennart
2024-06-16 13:01:53 +02:00
parent d647e45e5c
commit 69d6778193
3 changed files with 28 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ use crate::{calendar::Calendar, event::Event};
pub trait CalendarStore: Send + Sync + 'static {
async fn get_calendar(&self, id: &str) -> Result<Calendar, Error>;
async fn get_calendars(&self, owner: &str) -> Result<Vec<Calendar>, Error>;
async fn update_calendar(&mut self, cid: String, calendar: Calendar) -> Result<(), Error>;
async fn insert_calendar(&mut self, cid: String, calendar: Calendar) -> Result<(), Error>;
async fn delete_calendar(&mut self, cid: &str) -> Result<(), Error>;