pub struct Verdict {
pub file: String,
pub findings: Vec<Finding>,
pub advisories: Vec<Advisory>,
pub note: Option<String>,
}Expand description
One file’s verdict. An empty findings is the OK verdict and prints as a
sentence. advisories are separate: a file may be OK and still carry them.
Fields§
§file: String§findings: Vec<Finding>§advisories: Vec<Advisory>§note: Option<String>Why an OK file was not read line by line — it is not in the working
tree as the merge asked, or it is not source. None for a file that
was checked.
Implementations§
Source§impl Verdict
impl Verdict
Sourcepub fn noted(file: &str, note: &str) -> Verdict
pub fn noted(file: &str, note: &str) -> Verdict
An OK verdict for a file there was nothing to verify in, saying why. Every file the merge touched gets a line; silence about one would read the same as approval of it.
Sourcepub fn unread(file: &str, why: &str) -> Verdict
pub fn unread(file: &str, why: &str) -> Verdict
The verdict for a file whose merge stage could not be read: NOT checked, and said so. Leaving it out of the report would make it indistinguishable from a file nobody asked about.
Trait Implementations§
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more