#[non_exhaustive]pub struct ContactCardComparator {
pub property: ContactCardComparatorProperty,
pub is_ascending: bool,
pub collation: Option<String>,
}Expand description
Comparator for ContactCard/query sort order (RFC 9610 §3.3.2).
Build one with ContactCardComparator::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
ContactCardFilterCondition 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: ContactCardComparatorPropertyThe property to sort by.
is_ascending: boolSort direction; true = ascending (wire-default per RFC 8620
§5.5), false = descending.
collation: Option<String>Optional collation identifier (RFC 4790).
Implementations§
Source§impl ContactCardComparator
impl ContactCardComparator
Sourcepub fn new(property: ContactCardComparatorProperty) -> Self
pub fn new(property: ContactCardComparatorProperty) -> Self
An ascending comparator on property with no collation
(isAscending defaults to true, RFC 8620 §5.5).