#[non_exhaustive]pub enum CalendarEventComparatorProperty {
Id,
Uid,
Start,
Created,
Updated,
Other(String),
}Expand description
The property to sort by in a CalendarEventComparator
(draft-ietf-jmap-calendars-33 §5.11.2: “The following properties MUST
be supported for sorting: id, uid, start” and “SHOULD be supported for
sorting: created, updated”).
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). Cross-reference: bd JMAP-wf92.11.
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.
Id
Sort by id.
Uid
Sort by uid.
Start
Sort by start, as an absolute point in time rather than the
lexical start value; a floating event’s start is read in the
query’s timeZone (draft-ietf-jmap-calendars-33 §5.11.2).
Created
Sort by created.
Updated
Sort by updated.
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 CalendarEventComparatorProperty
impl<'de> Deserialize<'de> for CalendarEventComparatorProperty
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 CalendarEventComparatorProperty
Source§impl From<&str> for CalendarEventComparatorProperty
impl From<&str> for CalendarEventComparatorProperty
Source§impl From<String> for CalendarEventComparatorProperty
impl From<String> for CalendarEventComparatorProperty
impl StructuralPartialEq for CalendarEventComparatorProperty
Auto Trait Implementations§
impl Freeze for CalendarEventComparatorProperty
impl RefUnwindSafe for CalendarEventComparatorProperty
impl Send for CalendarEventComparatorProperty
impl Sync for CalendarEventComparatorProperty
impl Unpin for CalendarEventComparatorProperty
impl UnsafeUnpin for CalendarEventComparatorProperty
impl UnwindSafe for CalendarEventComparatorProperty
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