Files
cull-gmail/src/eol_cmd.rs
Jeremiah Russell 7a1a8f6a1a 🐛 fix(ui): correct grammar errors in eol command and trash messages
- fix typo in `Delete` variant description from "immediatly" to "immediately"
- correct grammar in trash log message from "move to trash" to "moved to trash"
2025-10-07 17:34:19 +01:00

23 lines
607 B
Rust

use std::fmt;
/// End of life command
/// - Trash - move the message to the trash to be automatically deleted by Google
/// - Delete - delete the message immediately without allowing rescue from trash
#[derive(Debug, Default)]
pub enum EolCmd {
#[default]
/// Move the message to the trash
Trash,
/// Delete the message immediately
Delete,
}
impl fmt::Display for EolCmd {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
EolCmd::Trash => write!(f, "trash"),
EolCmd::Delete => write!(f, "delete"),
}
}
}