Enum ContactCardComparatorProperty Copy item path Source #[non_exhaustive]
pub enum ContactCardComparatorProperty {
Created,
Updated,
NameGiven,
NameSurname,
NameSurname2,
Other(String ),
}Expand description The property to sort by in a ContactCardComparator (RFC 9610 §3.3.2).
RFC 9610 §3.3.2: "created" and "updated" “MUST be supported for
sorting”; "name/given", "name/surname" and "name/surname2"
“SHOULD 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). Cross-reference: bd JMAP-wf92.11.
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.
Sort by the card’s created date.
Sort by the card’s updated date.
Sort by the first NameComponent in name whose kind is given.
Sort by the first NameComponent in name whose kind is surname.
Sort by the first NameComponent in name whose kind is surname2.
A property not listed above, kept so it round-trips; a server
answers it with unsupportedSort (RFC 8620 §5.5).
The wire string for this value: the listed string for a
known variant, the stored string for Other.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Deserialize this value from the given Serde deserializer.
Read more Formats the value using the given formatter.
Read more Converts to this type from the input type.
Converts to this type from the input type.
Serialize this value into the given Serde serializer.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.