#[non_exhaustive]pub enum CalendarEventNotificationComparatorProperty {
Created,
Other(String),
}Expand description
The property to sort by in a CalendarEventNotificationComparator
(draft-ietf-jmap-calendars-33 §7.4.2: “The “created” property MUST be
supported for sorting.“).
Unknown property names are preserved in
Other so they
round-trip; a server cannot sort by one it does not know (RFC 8620 §5.5
unsupportedSort).
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.
Created
Sort by created.
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 CalendarEventNotificationComparatorProperty
impl<'de> Deserialize<'de> for CalendarEventNotificationComparatorProperty
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 CalendarEventNotificationComparatorProperty
impl StructuralPartialEq for CalendarEventNotificationComparatorProperty
Auto Trait Implementations§
impl Freeze for CalendarEventNotificationComparatorProperty
impl RefUnwindSafe for CalendarEventNotificationComparatorProperty
impl Send for CalendarEventNotificationComparatorProperty
impl Sync for CalendarEventNotificationComparatorProperty
impl Unpin for CalendarEventNotificationComparatorProperty
impl UnsafeUnpin for CalendarEventNotificationComparatorProperty
impl UnwindSafe for CalendarEventNotificationComparatorProperty
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