#[non_exhaustive]pub enum MailboxComparatorProperty {
SortOrder,
Name,
Other(String),
}Expand description
The property to sort by in a MailboxComparator.
RFC 8621 §2.3: “The following Mailbox properties MUST be supported for
sorting: “sortOrder” “name”“. 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.
SortOrder
Sort by sortOrder.
Name
Sort by name.
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 Clone for MailboxComparatorProperty
impl Clone for MailboxComparatorProperty
Source§impl Debug for MailboxComparatorProperty
impl Debug for MailboxComparatorProperty
Source§impl<'de> Deserialize<'de> for MailboxComparatorProperty
impl<'de> Deserialize<'de> for MailboxComparatorProperty
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 MailboxComparatorProperty
impl Display for MailboxComparatorProperty
impl Eq for MailboxComparatorProperty
Source§impl From<&str> for MailboxComparatorProperty
impl From<&str> for MailboxComparatorProperty
Source§impl From<String> for MailboxComparatorProperty
impl From<String> for MailboxComparatorProperty
Source§impl Hash for MailboxComparatorProperty
impl Hash for MailboxComparatorProperty
impl StructuralPartialEq for MailboxComparatorProperty
Auto Trait Implementations§
impl Freeze for MailboxComparatorProperty
impl RefUnwindSafe for MailboxComparatorProperty
impl Send for MailboxComparatorProperty
impl Sync for MailboxComparatorProperty
impl Unpin for MailboxComparatorProperty
impl UnsafeUnpin for MailboxComparatorProperty
impl UnwindSafe for MailboxComparatorProperty
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