pub struct Finding {
pub severity: Severity,
pub title: String,
pub detail: String,
pub file: String,
pub in_scope: bool,
pub problem: Option<String>,
pub reproduction: Option<String>,
pub impact: Option<String>,
pub expected: Option<String>,
}Fields§
§severity: Severity§title: String§detail: String§file: String§in_scope: boolA real problem that this PR did not cause. Those become follow-ups rather than review comments, so they cannot gate an unrelated merge.
problem: Option<String>What is wrong, with the specifics.
reproduction: Option<String>Steps to reproduce it, and what actually happens.
impact: Option<String>What it costs somebody.
expected: Option<String>What it should do instead.
Implementations§
Trait Implementations§
Source§impl Default for Finding
impl Default for Finding
Source§fn default() -> Self
fn default() -> Self
A blank finding, for building one field at a time.
Severity is spelled out here rather than derived, because a severity arriving by default is exactly the mistake this codebase refuses elsewhere: it is the field that decides whether a merge is gated, and the least severe value is the only safe thing to assume.
Source§impl<'de> Deserialize<'de> for Finding
impl<'de> Deserialize<'de> for Finding
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
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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