Enum imap_types::flag::Flag
source · pub enum Flag<'a> {
Answered,
Deleted,
Draft,
Flagged,
Seen,
Extension(FlagExtension<'a>),
Keyword(Atom<'a>),
}Expand description
There are two types of flags in IMAP4rev1: System and keyword flags.
A system flag is a flag name that is pre-defined in RFC3501.
All system flags begin with “\” and certain system flags (\Deleted and \Seen) have special semantics.
Flags that begin with “\” but are not pre-defined system flags, are extension flags.
Clients MUST accept them and servers MUST NOT send them except when defined by future standard or standards-track revisions.
A keyword is defined by the server implementation.
Keywords do not begin with “\” and servers may permit the client to define new ones
in the mailbox by sending the \* flag (FlagPerm::Asterisk) in the PERMANENTFLAGS response..
Note that a flag of either type can be permanent or session-only.
Variants§
Answered
Message has been answered (\Answered).
Deleted
Message is “deleted” for removal by later EXPUNGE (\Deleted).
Draft
Message has not completed composition (marked as a draft) (\Draft).
Flagged
Message is “flagged” for urgent/special attention (\Flagged).
Seen
Message has been read (\Seen).
Extension(FlagExtension<'a>)
A future expansion of a system flag.
Keyword(Atom<'a>)
A keyword.
Implementations§
Trait Implementations§
source§impl<'a> Arbitrary<'a> for Flag<'a>
impl<'a> Arbitrary<'a> for Flag<'a>
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Self from the entirety of the given
unstructured data. Read moresource§impl<'de, 'a> Deserialize<'de> for Flag<'a>
impl<'de, 'a> Deserialize<'de> for Flag<'a>
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>,
source§impl<'a> IntoBoundedStatic for Flag<'a>
impl<'a> IntoBoundedStatic for Flag<'a>
source§impl<'a> PartialEq for Flag<'a>
impl<'a> PartialEq for Flag<'a>
source§impl<'a> ToBoundedStatic for Flag<'a>
impl<'a> ToBoundedStatic for Flag<'a>
impl<'a> Eq for Flag<'a>
impl<'a> StructuralPartialEq for Flag<'a>
Auto Trait Implementations§
impl<'a> Freeze for Flag<'a>
impl<'a> RefUnwindSafe for Flag<'a>
impl<'a> Send for Flag<'a>
impl<'a> Sync for Flag<'a>
impl<'a> Unpin for Flag<'a>
impl<'a> UnwindSafe for Flag<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)