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;
11pub mod synctoken;
12
13#[cfg(test)]
14pub mod tests;
15
16pub use addressbook_store::*;
17pub use calendar_store::*;
18pub use combined_calendar_store::{CombinedCalendarStore, PrefixedCalendarStore};
19pub use secret::Secret;
20
21pub use addressbook::Addressbook;
22pub use calendar::{Calendar, CalendarMetadata};
23
24#[derive(Debug, Clone)]
25pub enum CollectionOperationInfo {
26 Content { sync_token: String },
28 Delete,
30}
31
32#[derive(Debug, Clone)]
33pub struct CollectionOperation {
34 pub topic: String,
35 pub data: CollectionOperationInfo,
36}
37
38#[derive(Default, Debug, Clone)]
39pub struct CollectionMetadata {
40 pub len: usize,
41 pub deleted_len: usize,
42 pub size: u64,
43 pub deleted_size: u64,
44}