#[non_exhaustive]pub struct CalendarEventNotificationComparator {
pub property: CalendarEventNotificationComparatorProperty,
pub is_ascending: bool,
pub collation: Option<String>,
}Expand description
Comparator for CalendarEventNotification/query
(draft-ietf-jmap-calendars-33 §7.4.2).
Build one with CalendarEventNotificationComparator::new; the struct
is #[non_exhaustive]. Out of scope for extras preservation for the
same reason as crate::CalendarEventComparator: backends dispatch on
property.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.property: CalendarEventNotificationComparatorPropertyThe 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 CalendarEventNotificationComparator
impl CalendarEventNotificationComparator
Sourcepub fn new(property: CalendarEventNotificationComparatorProperty) -> Self
pub fn new(property: CalendarEventNotificationComparatorProperty) -> Self
An ascending comparator on property with no collation
(isAscending defaults to true, RFC 8620 §5.5).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CalendarEventNotificationComparator
impl<'de> Deserialize<'de> for CalendarEventNotificationComparator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CalendarEventNotificationComparator
impl StructuralPartialEq for CalendarEventNotificationComparator
Auto Trait Implementations§
impl Freeze for CalendarEventNotificationComparator
impl RefUnwindSafe for CalendarEventNotificationComparator
impl Send for CalendarEventNotificationComparator
impl Sync for CalendarEventNotificationComparator
impl Unpin for CalendarEventNotificationComparator
impl UnsafeUnpin for CalendarEventNotificationComparator
impl UnwindSafe for CalendarEventNotificationComparator
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