pub struct DiffRiskFinding {
pub rule: DiffRiskRule,
pub kind: Option<WeakenedTestsKind>,
pub path: String,
pub line: Option<u32>,
pub message: String,
pub evidence: String,
pub severity: DiffRiskSeverity,
pub introduced: bool,
pub related: Vec<DiffRiskLocation>,
pub actions: Vec<DiffRiskAction>,
}Expand description
One diff-risk finding.
Fields§
§rule: DiffRiskRuleThe rule that owns the finding.
kind: Option<WeakenedTestsKind>How the tests were weakened. Present only on weakened-tests.
path: StringRoot-relative path of the changed file, with forward slashes.
line: Option<u32>1-based head line. Absent when the finding is about the whole file, for example removed tests or a deleted file.
message: StringOne-sentence statement of the fact.
evidence: StringThe token, the count change, or the value change that supports the finding.
severity: DiffRiskSeverityThe severity from the rule config.
introduced: boolAlways true: the change introduced the finding.
Related locations, such as the unchanged siblings of a clone group.
actions: Vec<DiffRiskAction>Suppression actions.
Trait Implementations§
Source§impl Clone for DiffRiskFinding
impl Clone for DiffRiskFinding
Source§impl Debug for DiffRiskFinding
impl Debug for DiffRiskFinding
Source§impl<'de> Deserialize<'de> for DiffRiskFinding
impl<'de> Deserialize<'de> for DiffRiskFinding
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
impl Eq for DiffRiskFinding
Source§impl PartialEq for DiffRiskFinding
impl PartialEq for DiffRiskFinding
Source§impl Serialize for DiffRiskFinding
impl Serialize for DiffRiskFinding
impl StructuralPartialEq for DiffRiskFinding
Auto Trait Implementations§
impl Freeze for DiffRiskFinding
impl RefUnwindSafe for DiffRiskFinding
impl Send for DiffRiskFinding
impl Sync for DiffRiskFinding
impl Unpin for DiffRiskFinding
impl UnsafeUnpin for DiffRiskFinding
impl UnwindSafe for DiffRiskFinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.