Skip to main content

pidge_core/
lib.rs

1//! Core types for pidge: accounts, configuration, and the normalized message model.
2//!
3//! This crate is intentionally provider-agnostic: it knows nothing about HTTP,
4//! Microsoft Graph, or authentication. Those concerns live in `pidge-client`.
5
6mod account;
7pub mod availability;
8mod cache;
9mod config;
10pub mod contacts;
11mod error;
12mod event;
13pub mod flags;
14mod message;
15pub mod paths;
16pub mod render;
17pub mod timerange;
18
19pub use account::{Account, TokenStorage};
20pub use cache::{
21    CacheLookup, CachedEventRef, CachedMessageRef, EventCache, FragmentError, MessageCache,
22    short_hash,
23};
24pub use config::{Config, Defaults};
25pub use contacts::{Contact, ContactSource, ContactsCache};
26pub use error::CoreError;
27pub use event::{
28    Attendee, AttendeeKind, Calendar, Event, EventTime, RecurrenceFreq, RecurrencePattern,
29    RecurrenceRange, ResponseStatus, Weekday,
30};
31pub use message::{Attachment, BodyContentType, FlagStatus, FullMessage, Message, MessageFrom};