Zero copy tests passing for JMAP

This commit is contained in:
mdecimus
2025-03-01 20:01:48 +01:00
parent 9ec047d284
commit c8abc9213a
67 changed files with 1103 additions and 846 deletions

View File

@@ -34,6 +34,16 @@ pub enum Collection {
}
impl Collection {
pub fn parent_collection(&self) -> Option<Collection> {
match self {
Collection::Email => Some(Collection::Mailbox),
Collection::CalendarEvent => Some(Collection::Calendar),
Collection::ContactCard => Some(Collection::AddressBook),
Collection::FileNode => Some(Collection::FileNode),
_ => None,
}
}
pub fn child_collection(&self) -> Option<Collection> {
match self {
Collection::Mailbox => Some(Collection::Email),