pub struct ScanResult {
pub violations: Vec<Violation>,
pub files_scanned: usize,
pub rules_loaded: usize,
pub ratchet_counts: HashMap<String, (usize, usize)>,
pub changed_files_count: Option<usize>,
pub base_ref: Option<String>,
}Fields§
§violations: Vec<Violation>§files_scanned: usize§rules_loaded: usize§ratchet_counts: HashMap<String, (usize, usize)>For each ratchet rule: (found_count, max_count).
changed_files_count: Option<usize>Number of changed files when using –changed-only.
base_ref: Option<String>Base ref used for diff when using –changed-only.
Auto Trait Implementations§
impl Freeze for ScanResult
impl RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl UnsafeUnpin for ScanResult
impl UnwindSafe for ScanResult
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> 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