#[non_exhaustive]pub struct EmailSubmissionComparator {
pub property: EmailSubmissionComparatorProperty,
pub is_ascending: bool,
pub collation: Option<String>,
}Expand description
Sort comparator for EmailSubmission/query (RFC 8621 §7.3).
Out of scope for extras preservation for the same reason as
EmailComparator: backends dispatch on property.
Build one with EmailSubmissionComparator::new; the struct is
#[non_exhaustive].
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: EmailSubmissionComparatorPropertyThe property to sort by.
is_ascending: boolIf true, sort ascending; if false, sort descending.
Defaults to true per RFC 8620 §5.5.
collation: Option<String>Collation algorithm (e.g. "i;ascii-casemap").
Implementations§
Source§impl EmailSubmissionComparator
impl EmailSubmissionComparator
Sourcepub fn new(property: EmailSubmissionComparatorProperty) -> Self
pub fn new(property: EmailSubmissionComparatorProperty) -> Self
An ascending comparator on property with no collation
(isAscending defaults to true, RFC 8620 §5.5).
Trait Implementations§
Source§impl Clone for EmailSubmissionComparator
impl Clone for EmailSubmissionComparator
Source§impl Debug for EmailSubmissionComparator
impl Debug for EmailSubmissionComparator
Source§impl<'de> Deserialize<'de> for EmailSubmissionComparator
impl<'de> Deserialize<'de> for EmailSubmissionComparator
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 EmailSubmissionComparator
impl StructuralPartialEq for EmailSubmissionComparator
Auto Trait Implementations§
impl Freeze for EmailSubmissionComparator
impl RefUnwindSafe for EmailSubmissionComparator
impl Send for EmailSubmissionComparator
impl Sync for EmailSubmissionComparator
impl Unpin for EmailSubmissionComparator
impl UnsafeUnpin for EmailSubmissionComparator
impl UnwindSafe for EmailSubmissionComparator
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