pub struct LayerViolation {
pub source: NodeId,
pub source_layer: u8,
pub target: NodeId,
pub target_layer: u8,
pub edge_relation: String,
pub edge_weight: f32,
pub severity: ViolationSeverity,
pub violation_type: ViolationType,
pub explanation: String,
}Expand description
A single layering violation detected in the dependency graph.
Fields§
§source: NodeIdID of the node originating the problematic edge.
source_layer: u8Layer level of the source node.
target: NodeIdID of the node that is the target of the problematic edge.
target_layer: u8Layer level of the target node.
edge_relation: StringRelation label on the edge.
edge_weight: f32Weight of the edge.
severity: ViolationSeverityAssessed severity.
violation_type: ViolationTypeCategory of violation.
explanation: StringHuman-readable explanation of the violation.
Trait Implementations§
Source§impl Clone for LayerViolation
impl Clone for LayerViolation
Source§fn clone(&self) -> LayerViolation
fn clone(&self) -> LayerViolation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayerViolation
impl Debug for LayerViolation
Auto Trait Implementations§
impl Freeze for LayerViolation
impl RefUnwindSafe for LayerViolation
impl Send for LayerViolation
impl Sync for LayerViolation
impl Unpin for LayerViolation
impl UnsafeUnpin for LayerViolation
impl UnwindSafe for LayerViolation
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