#[non_exhaustive]pub enum ViolationKind {
EmptyTest,
Cycle,
FilePattern,
FileDependency,
ExternalModuleDependency,
CustomFile,
LayerDependency,
SliceDependency,
MetricZone,
CustomMetric,
MetricThreshold,
MetricPredicate,
}Expand description
The machine-readable family of a Violation.
Spellings are shared across ArchUnit ports and are stable report keys.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyTest
A selector matched no subject, so the rule judged nothing.
Cycle
The selected projected graph contains a circular dependency path.
FilePattern
A selected file disagrees with a filename, folder, or path pattern.
FileDependency
An internal file dependency disagrees with an allowlist or denylist rule.
ExternalModuleDependency
An external crate dependency disagrees with an allowlist or denylist rule.
CustomFile
A selected file disagrees with a user-defined predicate.
LayerDependency
An internal dependency disagrees with a named-layer policy.
SliceDependency
A projected dependency disagrees with a slice policy.
MetricZone
A file component lies in a discouraged abstractness/instability zone.
CustomMetric
A user-defined metric value did not satisfy its predicate.
MetricThreshold
A metric value did not meet an exact numeric threshold.
MetricPredicate
A built-in metric value did not satisfy a user predicate.
Implementations§
Trait Implementations§
Source§impl Clone for ViolationKind
impl Clone for ViolationKind
Source§fn clone(&self) -> ViolationKind
fn clone(&self) -> ViolationKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ViolationKind
impl Debug for ViolationKind
Source§impl Display for ViolationKind
impl Display for ViolationKind
Source§impl Hash for ViolationKind
impl Hash for ViolationKind
Source§impl Ord for ViolationKind
impl Ord for ViolationKind
Source§fn cmp(&self, other: &ViolationKind) -> Ordering
fn cmp(&self, other: &ViolationKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ViolationKind
impl PartialEq for ViolationKind
Source§impl PartialOrd for ViolationKind
impl PartialOrd for ViolationKind
impl Copy for ViolationKind
impl Eq for ViolationKind
impl StructuralPartialEq for ViolationKind
Auto Trait Implementations§
impl Freeze for ViolationKind
impl RefUnwindSafe for ViolationKind
impl Send for ViolationKind
impl Sync for ViolationKind
impl Unpin for ViolationKind
impl UnwindSafe for ViolationKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.