mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-15 00:12:16 +00:00
store: Add update_calendar method
This commit is contained in:
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user