#[non_exhaustive]pub enum EmailSubmissionComparatorProperty {
EmailId,
ThreadId,
SentAt,
Other(String),
}Expand description
The property to sort by in an EmailSubmissionComparator.
RFC 8621 §7.3: “The following EmailSubmission properties MUST be
supported for sorting: “emailId” “threadId” “sentAt”“. Unknown names
are kept in Other so they
round-trip; a server answers one it does not support with
unsupportedSort (RFC 8620 §5.5).
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.
EmailId
Sort by emailId.
ThreadId
Sort by threadId.
SentAt
Sort by sentAt.
Other(String)
A property not listed above, kept so it round-trips; a server
answers it with unsupportedSort (RFC 8620 §5.5).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EmailSubmissionComparatorProperty
impl<'de> Deserialize<'de> for EmailSubmissionComparatorProperty
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
impl Eq for EmailSubmissionComparatorProperty
Source§impl From<&str> for EmailSubmissionComparatorProperty
impl From<&str> for EmailSubmissionComparatorProperty
impl StructuralPartialEq for EmailSubmissionComparatorProperty
Auto Trait Implementations§
impl Freeze for EmailSubmissionComparatorProperty
impl RefUnwindSafe for EmailSubmissionComparatorProperty
impl Send for EmailSubmissionComparatorProperty
impl Sync for EmailSubmissionComparatorProperty
impl Unpin for EmailSubmissionComparatorProperty
impl UnsafeUnpin for EmailSubmissionComparatorProperty
impl UnwindSafe for EmailSubmissionComparatorProperty
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