1#![warn(clippy::all, clippy::pedantic, clippy::nursery)]
2pub mod addressbook;
3pub mod addressbook_store;
4pub mod calendar_store;
5pub mod error;
6pub use error::Error;
7pub mod auth;
8mod calendar;
9mod combined_calendar_store;
10mod secret;
11mod subscription_store;
12pub mod synctoken;
13
14#[cfg(test)]
15pub mod tests;
16
17pub use addressbook_store::AddressbookStore;
18pub use calendar_store::CalendarStore;
19pub use combined_calendar_store::{CombinedCalendarStore, PrefixedCalendarStore};
20pub use secret::Secret;
21pub use subscription_store::*;
22
23pub use addressbook::Addressbook;
24pub use calendar::{Calendar, CalendarMetadata};
25
26#[derive(Debug, Clone)]
27pub enum CollectionOperationInfo {
28 Content { sync_token: String },
30 Delete,
32}
33
34#[derive(Debug, Clone)]
35pub struct CollectionOperation {
36 pub topic: String,
37 pub data: CollectionOperationInfo,
38}
39
40#[derive(Default, Debug, Clone)]
41pub struct CollectionMetadata {
42 pub len: usize,
43 pub deleted_len: usize,
44 pub size: u64,
45 pub deleted_size: u64,
46}