pub struct TypeOnlyDependencyFinding {
pub dep: TypeOnlyDependency,
pub actions: Vec<IssueAction>,
pub introduced: Option<AuditIntroduced>,
pub effective_severity: Option<EffectiveSeverity>,
}Expand description
Wire-shape envelope for a TypeOnlyDependency finding. Carries a
move-to-dev primary plus the standard ignoreDependencies config
suppress.
Fields§
§dep: TypeOnlyDependencyThe 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 TypeOnlyDependencyFinding
impl TypeOnlyDependencyFinding
Sourcepub fn with_actions(dep: TypeOnlyDependency) -> Self
pub fn with_actions(dep: TypeOnlyDependency) -> Self
Build the wrapper.
Trait Implementations§
Source§impl Clone for TypeOnlyDependencyFinding
impl Clone for TypeOnlyDependencyFinding
Source§impl Debug for TypeOnlyDependencyFinding
impl Debug for TypeOnlyDependencyFinding
Source§impl<'de> Deserialize<'de> for TypeOnlyDependencyFinding
impl<'de> Deserialize<'de> for TypeOnlyDependencyFinding
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 TypeOnlyDependencyFinding
impl GatedFinding for TypeOnlyDependencyFinding
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 TypeOnlyDependencyFinding
impl RefUnwindSafe for TypeOnlyDependencyFinding
impl Send for TypeOnlyDependencyFinding
impl Sync for TypeOnlyDependencyFinding
impl Unpin for TypeOnlyDependencyFinding
impl UnsafeUnpin for TypeOnlyDependencyFinding
impl UnwindSafe for TypeOnlyDependencyFinding
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