Documentation
mod account;
pub mod consts;
mod endpoints;
mod types;

pub use account::Account;
pub use endpoints::absences::Absence;
pub use endpoints::announced_tests::AnnouncedTest;
pub use endpoints::classes::Class;
pub use endpoints::evaluations::Evaluation;
pub use endpoints::lessons::Lesson;
pub use endpoints::messages::{Attachment, Msg, MsgItem, MsgKind, MsgOview, NoteMsg};
pub use endpoints::schools::School;
pub use endpoints::token::Token;
pub use endpoints::user_info::UserInfo;
pub use endpoints::Endpoint;
pub use http::header::{self, HeaderMap};

/// optional interval
pub type OptIrval = (Option<chrono::NaiveDate>, Option<chrono::NaiveDate>);
/// Local DateTime
pub type LDateTime = chrono::DateTime<chrono::Local>;
// although quite universal error type, do consider migrating to `anyhow`
pub type Res<T> = Result<T, Box<dyn std::error::Error>>;