pub struct MessageFlags { /* private fields */ }Expand description
Message flags (IMAP standard flags)
Implementations§
Source§impl MessageFlags
impl MessageFlags
Sourcepub fn is_answered(&self) -> bool
pub fn is_answered(&self) -> bool
Check if message is answered
Sourcepub fn set_answered(&mut self, value: bool)
pub fn set_answered(&mut self, value: bool)
Set answered flag
Sourcepub fn is_flagged(&self) -> bool
pub fn is_flagged(&self) -> bool
Check if message is flagged
Sourcepub fn set_flagged(&mut self, value: bool)
pub fn set_flagged(&mut self, value: bool)
Set flagged flag
Sourcepub fn is_deleted(&self) -> bool
pub fn is_deleted(&self) -> bool
Check if message is deleted
Sourcepub fn set_deleted(&mut self, value: bool)
pub fn set_deleted(&mut self, value: bool)
Set deleted flag
Sourcepub fn set_recent(&mut self, value: bool)
pub fn set_recent(&mut self, value: bool)
Set recent flag
Sourcepub fn add_custom(&mut self, flag: String)
pub fn add_custom(&mut self, flag: String)
Add custom flag
Sourcepub fn remove_custom(&mut self, flag: &str) -> bool
pub fn remove_custom(&mut self, flag: &str) -> bool
Remove custom flag
Trait Implementations§
Source§impl Clone for MessageFlags
impl Clone for MessageFlags
Source§fn clone(&self) -> MessageFlags
fn clone(&self) -> MessageFlags
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageFlags
impl Debug for MessageFlags
Source§impl Default for MessageFlags
impl Default for MessageFlags
Source§fn default() -> MessageFlags
fn default() -> MessageFlags
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageFlags
impl<'de> Deserialize<'de> for MessageFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MessageFlags
impl RefUnwindSafe for MessageFlags
impl Send for MessageFlags
impl Sync for MessageFlags
impl Unpin for MessageFlags
impl UnsafeUnpin for MessageFlags
impl UnwindSafe for MessageFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more