#[non_exhaustive]pub struct CalendarEventComparator {
pub property: CalendarEventComparatorProperty,
pub is_ascending: bool,
pub collation: Option<String>,
}Expand description
Comparator for CalendarEvent/query
(draft-ietf-jmap-calendars-33 §5.11.2).
Build one with CalendarEventComparator::new; the struct is
#[non_exhaustive].
§Excluded from extras preservation
This type is out of scope for the workspace extras-preservation
policy: it carries no flatten-extras extra field, and its property
field is consumed by backend dispatch to determine sort order. See
CalendarEventFilterCondition for the rationale and for the two
recommended paths (draft-ietf-jmap-metadata, bd JMAP-ua37; or the
pre-IETF sloppy-value escape).
Cross-reference: bd JMAP-lbdy “Decision: filter algebra excluded”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.property: CalendarEventComparatorPropertyThe property to sort by.
is_ascending: boolIf true, sort ascending; if false, sort descending (default true).
collation: Option<String>A collation identifier (RFC 4790) to use when comparing strings.
Implementations§
Source§impl CalendarEventComparator
impl CalendarEventComparator
Sourcepub fn new(property: CalendarEventComparatorProperty) -> Self
pub fn new(property: CalendarEventComparatorProperty) -> Self
An ascending comparator on property with no collation
(isAscending defaults to true, RFC 8620 §5.5).