♻️ refactor(core): restructure modules for clarity
- rename and relocate modules for better organization - replace `processor` with `rule_processor` - remove `delete` and `trash` modules
This commit is contained in:
committed by
Jeremiah Russell
parent
e3c78bc058
commit
9674974ffe
18
src/lib.rs
18
src/lib.rs
@@ -6,31 +6,29 @@
|
|||||||
|
|
||||||
mod config;
|
mod config;
|
||||||
mod credential;
|
mod credential;
|
||||||
mod delete;
|
|
||||||
mod eol_action;
|
mod eol_action;
|
||||||
mod error;
|
mod error;
|
||||||
mod gmail_client;
|
mod gmail_client;
|
||||||
mod message_list;
|
mod message_list;
|
||||||
mod processor;
|
|
||||||
mod retention;
|
mod retention;
|
||||||
mod trash;
|
mod rule_processor;
|
||||||
|
|
||||||
pub(crate) mod utils;
|
pub(crate) mod utils;
|
||||||
|
|
||||||
|
pub use gmail_client::DEFAULT_MAX_RESULTS;
|
||||||
|
|
||||||
pub use config::Config;
|
pub use config::Config;
|
||||||
pub use credential::Credential;
|
pub use credential::Credential;
|
||||||
pub use eol_action::EolAction;
|
|
||||||
pub use error::Error;
|
|
||||||
pub use gmail_client::DEFAULT_MAX_RESULTS;
|
|
||||||
pub use gmail_client::GmailClient;
|
pub use gmail_client::GmailClient;
|
||||||
pub(crate) use gmail_client::MessageSummary;
|
pub(crate) use gmail_client::MessageSummary;
|
||||||
pub use processor::RuleProcessor;
|
|
||||||
pub use retention::MessageAge;
|
|
||||||
pub use retention::Retention;
|
pub use retention::Retention;
|
||||||
|
|
||||||
pub use delete::Delete;
|
pub use eol_action::EolAction;
|
||||||
|
pub use error::Error;
|
||||||
|
pub use retention::MessageAge;
|
||||||
|
|
||||||
pub use message_list::MessageList;
|
pub use message_list::MessageList;
|
||||||
pub use trash::Trash;
|
pub use rule_processor::RuleProcessor;
|
||||||
|
|
||||||
/// Type alias for result with crate Error
|
/// Type alias for result with crate Error
|
||||||
pub type Result<O> = std::result::Result<O, Error>;
|
pub type Result<O> = std::result::Result<O, Error>;
|
||||||
|
|||||||
Reference in New Issue
Block a user