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, Gmail, or authentication. It defines the [`provider::Provider`]
5//! seam that `pidge-client` (Microsoft Graph) and `pidge-gmail` implement.
6
7mod account;
8pub mod availability;
9mod config;
10mod error;
11mod event;
12mod message;
13pub mod paths;
14pub mod provider;
15pub mod render;
16pub mod timerange;
17pub mod unsubscribe;
18
19pub use account::{Account, TokenStorage};
20pub use config::{Config, Defaults, GoogleClient};
21pub use error::CoreError;
22pub use event::{
23    Attendee, AttendeeKind, Calendar, Event, EventTime, RecurrenceFreq, RecurrencePattern,
24    RecurrenceRange, ResponseStatus, Weekday,
25};
26pub use message::{Attachment, BodyContentType, FlagStatus, FullMessage, Message, MessageFrom};