diff --git a/lib/domain/libimagcalendar/src/store.rs b/lib/domain/libimagcalendar/src/store.rs index 01880f51..656100e5 100644 --- a/lib/domain/libimagcalendar/src/store.rs +++ b/lib/domain/libimagcalendar/src/store.rs @@ -58,6 +58,9 @@ pub trait EventStore<'a> { -> Result>>> where P: AsRef, Coll: AsRef; + + fn get_event_by_uid(&'a self, id: ID) -> Result>> + where ID: AsRef; } impl<'a> EventStore<'a> for Store { @@ -94,5 +97,11 @@ impl<'a> EventStore<'a> for Store { }) .collect()) } + + fn get_event_by_uid(&'a self, id: ID) -> Result>> + where ID: AsRef + { + self.get(crate::module_path::new_id(id.as_ref())?) + } }