mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 19:22:26 +00:00
Implement DAV Push
This commit is contained in:
@@ -22,22 +22,15 @@ pub use addressbook::Addressbook;
|
||||
pub use calendar::Calendar;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum CollectionOperationType {
|
||||
pub enum CollectionOperationInfo {
|
||||
// Sync-Token increased
|
||||
Object,
|
||||
Content { sync_token: String },
|
||||
// Collection deleted
|
||||
Delete,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum CollectionOperationDomain {
|
||||
Calendar,
|
||||
Addressbook,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct CollectionOperation {
|
||||
pub r#type: CollectionOperationType,
|
||||
pub domain: CollectionOperationDomain,
|
||||
pub topic: String,
|
||||
pub sync_token: Option<String>,
|
||||
pub data: CollectionOperationInfo,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user