WebDAV COPY/MOVE tests

This commit is contained in:
mdecimus
2025-05-01 16:35:07 +02:00
parent 91944162d9
commit 5416e35d4d
28 changed files with 1600 additions and 363 deletions

View File

@@ -35,6 +35,15 @@ pub enum Collection {
}
impl Collection {
pub fn main_collection(&self) -> Collection {
match self {
Collection::Email => Collection::Mailbox,
Collection::CalendarEvent => Collection::Calendar,
Collection::ContactCard => Collection::AddressBook,
_ => *self,
}
}
pub fn parent_collection(&self) -> Option<Collection> {
match self {
Collection::Email => Some(Collection::Mailbox),