#[non_exhaustive]pub enum GitAnomaly {
CommitterBeforeAuthor {
commit: GitHash,
author_time: i64,
committer_time: i64,
},
}Expand description
A forensic anomaly observed in a Git object store.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CommitterBeforeAuthor
A commit’s committer timestamp precedes its author timestamp.
Implementations§
Trait Implementations§
Source§impl Clone for GitAnomaly
impl Clone for GitAnomaly
Source§fn clone(&self) -> GitAnomaly
fn clone(&self) -> GitAnomaly
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitAnomaly
impl Debug for GitAnomaly
impl Eq for GitAnomaly
Source§impl Observation for GitAnomaly
impl Observation for GitAnomaly
Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
Severity, or
None if the analyzer deliberately does not grade this kind.Source§fn category(&self) -> Category
fn category(&self) -> Category
Analytical lens; defaults to
Category::from_code of Observation::code.
Override when a code’s keyword classification is wrong.Source§fn subjects(&self) -> Vec<SubjectRef>
fn subjects(&self) -> Vec<SubjectRef>
Non-disk subjects this kind is about (default: none).
Source§fn mitre(&self) -> &'static [&'static str]
fn mitre(&self) -> &'static [&'static str]
MITRE ATT&CK technique ids this kind is consistent with (default: none).
Source§fn confidence(&self) -> Option<Confidence>
fn confidence(&self) -> Option<Confidence>
Heuristic confidence, if inferential (default: none).
Source§impl PartialEq for GitAnomaly
impl PartialEq for GitAnomaly
Source§fn eq(&self, other: &GitAnomaly) -> bool
fn eq(&self, other: &GitAnomaly) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GitAnomaly
Auto Trait Implementations§
impl Freeze for GitAnomaly
impl RefUnwindSafe for GitAnomaly
impl Send for GitAnomaly
impl Sync for GitAnomaly
impl Unpin for GitAnomaly
impl UnsafeUnpin for GitAnomaly
impl UnwindSafe for GitAnomaly
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