Expand description
§cull-gmail Library Documentation
The cull-gmail library provides types to enable the culling of emails using the Gmail API including the following steps:
- login to get authorization
- backup the mailbox
- filtered lists of the contents
- move email matching a filtered list to trash
§Installation
Add the library to your program’s Cargo.toml using cargo add:
$ cargo add cull-gmailOr by configuring the dependencies manually in Cargo.toml:
[dependencies]
cull-gmail = "0.0.6"Structs§
- Config
- Configuration file for the program
- Credential
- Struct for google credentials
- Delete
- Struct for deleting messages
- Labels
- Struct to capture configuration for List API call.
- Message
List - Struct to capture configuration for List API call.
- Retention
- Define retention period and flag to indicate if label should be generated
- Trash
- Struct for trashing messages
Enums§
- EolAction
- End of life action
- Error
- Error messages for cull-gmail
- Message
Age - Message age
Constants§
- DEFAULT_
MAX_ RESULTS - Default for the maximum number of results to return on a page
Type Aliases§
- Result
- Type alias for result with crate Error