pub struct BoundaryViolationFinding {
pub violation: BoundaryViolation,
pub actions: Vec<IssueAction>,
pub introduced: Option<AuditIntroduced>,
pub effective_severity: Option<EffectiveSeverity>,
}Expand description
Wire-shape envelope for a BoundaryViolation finding. Mirrors
UnusedFileFinding: flattens the bare finding and carries a typed
actions array (refactor-boundary primary plus suppress-line
secondary).
Fields§
§violation: BoundaryViolationThe underlying dead-code entry.
actions: Vec<IssueAction>Suggested next steps. Always emitted (possibly empty for forward-compat).
introduced: Option<AuditIntroduced>Set by the audit pass when this finding is introduced relative to the merge-base.
effective_severity: Option<EffectiveSeverity>Gate severity of this finding after rules and overrides[].rules
resolve for its path. CI formats read it for the annotation, SARIF
and CodeClimate level. Absent in output from older versions. Not
part of the finding identity, baseline keys or fingerprints.
Implementations§
Source§impl BoundaryViolationFinding
impl BoundaryViolationFinding
Sourcepub fn with_actions(violation: BoundaryViolation) -> Self
pub fn with_actions(violation: BoundaryViolation) -> Self
Build the wrapper from a raw BoundaryViolation.
Trait Implementations§
Source§impl Clone for BoundaryViolationFinding
impl Clone for BoundaryViolationFinding
Source§impl Debug for BoundaryViolationFinding
impl Debug for BoundaryViolationFinding
Source§impl<'de> Deserialize<'de> for BoundaryViolationFinding
impl<'de> Deserialize<'de> for BoundaryViolationFinding
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
Source§impl GatedFinding for BoundaryViolationFinding
impl GatedFinding for BoundaryViolationFinding
Source§fn effective_severity(&self) -> Option<EffectiveSeverity>
fn effective_severity(&self) -> Option<EffectiveSeverity>
The gate severity, or
None when no value was written.Source§fn set_effective_severity(&mut self, severity: Option<EffectiveSeverity>)
fn set_effective_severity(&mut self, severity: Option<EffectiveSeverity>)
Write the gate severity.
Auto Trait Implementations§
impl Freeze for BoundaryViolationFinding
impl RefUnwindSafe for BoundaryViolationFinding
impl Send for BoundaryViolationFinding
impl Sync for BoundaryViolationFinding
impl Unpin for BoundaryViolationFinding
impl UnsafeUnpin for BoundaryViolationFinding
impl UnwindSafe for BoundaryViolationFinding
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