pub enum ArchRule {
LayerDependency {
upper: String,
lower: String,
},
ModuleBoundary {
module: String,
},
NamingConvention {
prefix: String,
pattern: String,
},
Cyclic {
scope: String,
},
}Expand description
A single architectural rule.
Variants§
LayerDependency
Layer A must not depend on Layer B.
ModuleBoundary
Module must not have external edges to another module.
NamingConvention
All units matching a prefix must follow a naming convention.
Cyclic
No dependency cycles in the given scope.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArchRule
impl RefUnwindSafe for ArchRule
impl Send for ArchRule
impl Sync for ArchRule
impl Unpin for ArchRule
impl UnsafeUnpin for ArchRule
impl UnwindSafe for ArchRule
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