#[non_exhaustive]pub enum ScanSort {
RuleId,
RuleIdDescending,
Source,
SourceDescending,
Severity,
SeverityDescending,
Confidence,
ConfidenceDescending,
Location,
LocationDescending,
}Expand description
Ordering applied when a scan query is materialized.
Sorting is intentionally separate from filtering. A query remains
allocation-free while filtering and iterating in source order; calling
ScanQuery::sort materializes only borrowed
(source, finding) pairs.
Because source ordering is part of this unified enum, sorting requires the
source key type to implement Ord, even when another sort variant is
selected. Equal primary keys use deterministic secondary ordering.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RuleId
Sort by rule identifier in ascending lexical order.
RuleIdDescending
Sort by rule identifier in descending lexical order.
Source
Sort by source key in ascending order.
SourceDescending
Sort by source key in descending order.
Severity
Sort by severity in ascending enum order.
SeverityDescending
Sort by severity in descending enum order.
Confidence
Sort by confidence in ascending enum order.
ConfidenceDescending
Sort by confidence in descending enum order.
Location
Sort by source location in ascending order.
LocationDescending
Sort by source location in descending order.