#[non_exhaustive]pub enum ComparatorProperty {
ReceivedAt,
Size,
From,
To,
Subject,
SentAt,
HasKeyword,
AllInThreadHaveKeyword,
SomeInThreadHaveKeyword,
Other(String),
}Expand description
The property to sort by in an EmailComparator (RFC 8621 §4.4.2).
When the variant is HasKeyword,
AllInThreadHaveKeyword, or
SomeInThreadHaveKeyword,
the keyword field on EmailComparator MUST also be set
(RFC 8621 §4.4.2).
Unknown property names from the server are preserved in
Other so they round-trip correctly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReceivedAt
Sort by receivedAt.
Size
Sort by message size in octets.
From
Sort by the text of the From header field.
To
Sort by the text of the To header field.
Subject
Sort by the decoded Subject.
SentAt
Sort by sentAt.
HasKeyword
Sort by whether Emails in the Thread have the given keyword.
AllInThreadHaveKeyword
Sort by whether all Emails in the Thread have the given keyword.
SomeInThreadHaveKeyword
Sort by whether some Emails in the Thread have the given keyword.
Other(String)
A server-extension property name not listed above.
Trait Implementations§
Source§impl Clone for ComparatorProperty
impl Clone for ComparatorProperty
Source§fn clone(&self) -> ComparatorProperty
fn clone(&self) -> ComparatorProperty
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 ComparatorProperty
impl Debug for ComparatorProperty
Source§impl<'de> Deserialize<'de> for ComparatorProperty
impl<'de> Deserialize<'de> for ComparatorProperty
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ComparatorProperty
impl Display for ComparatorProperty
Source§impl Hash for ComparatorProperty
impl Hash for ComparatorProperty
Source§impl PartialEq for ComparatorProperty
impl PartialEq for ComparatorProperty
Source§impl Serialize for ComparatorProperty
impl Serialize for ComparatorProperty
impl Eq for ComparatorProperty
impl StructuralPartialEq for ComparatorProperty
Auto Trait Implementations§
impl Freeze for ComparatorProperty
impl RefUnwindSafe for ComparatorProperty
impl Send for ComparatorProperty
impl Sync for ComparatorProperty
impl Unpin for ComparatorProperty
impl UnsafeUnpin for ComparatorProperty
impl UnwindSafe for ComparatorProperty
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