#[non_exhaustive]pub enum SieveScriptComparatorProperty {
Name,
IsActive,
Other(String),
}Expand description
The property to sort by in a SieveScriptComparator.
RFC 9661 §2.5: “The following SieveScript properties MUST be supported
for sorting: name, isActive”. 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.
Name
Sort by name.
IsActive
Sort by isActive.
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 SieveScriptComparatorProperty
impl<'de> Deserialize<'de> for SieveScriptComparatorProperty
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 SieveScriptComparatorProperty
Source§impl From<&str> for SieveScriptComparatorProperty
impl From<&str> for SieveScriptComparatorProperty
Source§impl From<String> for SieveScriptComparatorProperty
impl From<String> for SieveScriptComparatorProperty
Source§impl Hash for SieveScriptComparatorProperty
impl Hash for SieveScriptComparatorProperty
impl StructuralPartialEq for SieveScriptComparatorProperty
Auto Trait Implementations§
impl Freeze for SieveScriptComparatorProperty
impl RefUnwindSafe for SieveScriptComparatorProperty
impl Send for SieveScriptComparatorProperty
impl Sync for SieveScriptComparatorProperty
impl Unpin for SieveScriptComparatorProperty
impl UnsafeUnpin for SieveScriptComparatorProperty
impl UnwindSafe for SieveScriptComparatorProperty
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