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 render;
16pub mod timerange;
17
18pub use account::{Account, TokenStorage};
19pub use cache::{
20    CacheLookup, CachedEventRef, CachedMessageRef, EventCache, FragmentError, MessageCache,
21    short_hash,
22};
23pub use config::{Config, Defaults};
24pub use contacts::{Contact, ContactSource, ContactsCache};
25pub use error::CoreError;
26pub use event::{
27    Attendee, AttendeeKind, Calendar, Event, EventTime, RecurrenceFreq, RecurrencePattern,
28    RecurrenceRange, ResponseStatus, Weekday,
29};
30pub use message::{Attachment, BodyContentType, FlagStatus, FullMessage, Message, MessageFrom};