pub enum StoreAction {
Add,
Remove,
Set,
}Expand description
How a STORE / UID STORE command should modify a message’s flags.
Variants§
Add
Add the given flags to the existing set (+FLAGS).
Remove
Remove the given flags from the existing set (-FLAGS).
Set
Replace the existing set with the given flags (FLAGS).
Implementations§
Source§impl StoreAction
impl StoreAction
Sourcepub fn to_imap_prefix(&self, silent: bool) -> &str
pub fn to_imap_prefix(&self, silent: bool) -> &str
Return the IMAP item name for this action, e.g. +FLAGS or, when
silent is true, the .SILENT form that suppresses the untagged
FETCH response.
Trait Implementations§
Source§impl Clone for StoreAction
impl Clone for StoreAction
Source§fn clone(&self) -> StoreAction
fn clone(&self) -> StoreAction
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 StoreAction
impl Debug for StoreAction
Source§impl PartialEq for StoreAction
impl PartialEq for StoreAction
Source§fn eq(&self, other: &StoreAction) -> bool
fn eq(&self, other: &StoreAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StoreAction
impl StructuralPartialEq for StoreAction
Auto Trait Implementations§
impl Freeze for StoreAction
impl RefUnwindSafe for StoreAction
impl Send for StoreAction
impl Sync for StoreAction
impl Unpin for StoreAction
impl UnsafeUnpin for StoreAction
impl UnwindSafe for StoreAction
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