♻️ refactor(core): rename EolCmd to EolAction
- clarifies the purpose as an action to be performed at the end of life
This commit is contained in:
committed by
Jeremiah Russell
parent
c81cd6d6cc
commit
68b6cba9c1
@@ -4,7 +4,7 @@ use std::fmt;
|
|||||||
/// - Trash - move the message to the trash to be automatically deleted by Google
|
/// - Trash - move the message to the trash to be automatically deleted by Google
|
||||||
/// - Delete - delete the message immediately without allowing rescue from trash
|
/// - Delete - delete the message immediately without allowing rescue from trash
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub enum EolCmd {
|
pub enum EolAction {
|
||||||
#[default]
|
#[default]
|
||||||
/// Move the message to the trash
|
/// Move the message to the trash
|
||||||
Trash,
|
Trash,
|
||||||
@@ -12,11 +12,11 @@ pub enum EolCmd {
|
|||||||
Delete,
|
Delete,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for EolCmd {
|
impl fmt::Display for EolAction {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
EolCmd::Trash => write!(f, "trash"),
|
EolAction::Trash => write!(f, "trash"),
|
||||||
EolCmd::Delete => write!(f, "delete"),
|
EolAction::Delete => write!(f, "delete"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user