#[non_exhaustive]pub enum SignatureAnomaly {
UnsignedInSignedHistory {
commit: GitHash,
signed_count: usize,
total_count: usize,
},
}Expand description
A signing-policy anomaly observed across a set of commits.
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.
UnsignedInSignedHistory
An unsigned commit within a predominantly-signed history.
Implementations§
Trait Implementations§
Source§impl Clone for SignatureAnomaly
impl Clone for SignatureAnomaly
Source§fn clone(&self) -> SignatureAnomaly
fn clone(&self) -> SignatureAnomaly
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 SignatureAnomaly
impl Debug for SignatureAnomaly
impl Eq for SignatureAnomaly
Source§impl Observation for SignatureAnomaly
impl Observation for SignatureAnomaly
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 SignatureAnomaly
impl PartialEq for SignatureAnomaly
Source§fn eq(&self, other: &SignatureAnomaly) -> bool
fn eq(&self, other: &SignatureAnomaly) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SignatureAnomaly
Auto Trait Implementations§
impl Freeze for SignatureAnomaly
impl RefUnwindSafe for SignatureAnomaly
impl Send for SignatureAnomaly
impl Sync for SignatureAnomaly
impl Unpin for SignatureAnomaly
impl UnsafeUnpin for SignatureAnomaly
impl UnwindSafe for SignatureAnomaly
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