pub enum PlannedAction {
Move {
to: String,
},
Copy {
to: String,
},
AddFlags {
flags: Vec<Flag>,
},
RemoveFlags {
flags: Vec<Flag>,
},
SetFlags {
flags: Vec<Flag>,
},
MarkRead,
Delete,
Forward {
to: String,
},
Vacation(VacationReply),
Notify {
method: String,
message: String,
},
}Expand description
A single planned action ready for execution by the host application.
Variants§
Move
Move to folder.
Copy
Copy to folder.
AddFlags
Add flags (RFC 5232 addflag).
RemoveFlags
Remove flags (RFC 5232 removeflag).
SetFlags
Replace the flag set (RFC 5232 setflag).
MarkRead
Mark as read.
Delete
Delete (move to trash).
Forward
Forward to address.
Vacation(VacationReply)
Send an automated reply (RFC 5230 vacation). The engine evaluates
the reply — dedup, routing, default subject — but never sends: handing
it to an SMTP transport is the host’s responsibility.
Notify
Emit a notification to an external method (RFC 5436 notify).
Delivery is the host’s responsibility.
Trait Implementations§
Source§impl Clone for PlannedAction
impl Clone for PlannedAction
Source§fn clone(&self) -> PlannedAction
fn clone(&self) -> PlannedAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlannedAction
impl Debug for PlannedAction
impl Eq for PlannedAction
Source§impl From<&Action> for PlannedAction
impl From<&Action> for PlannedAction
Source§impl PartialEq for PlannedAction
impl PartialEq for PlannedAction
impl StructuralPartialEq for PlannedAction
Auto Trait Implementations§
impl Freeze for PlannedAction
impl RefUnwindSafe for PlannedAction
impl Send for PlannedAction
impl Sync for PlannedAction
impl Unpin for PlannedAction
impl UnsafeUnpin for PlannedAction
impl UnwindSafe for PlannedAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more