#[non_exhaustive]pub enum ReflogAnomaly {
HistoryRewrite {
ref_name: String,
old: GitHash,
new: GitHash,
operation: String,
message: String,
},
}Expand description
A history-rewriting operation observed in a ref’s reflog.
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.
HistoryRewrite
A reflog entry whose operation rewrote history (reset/rebase/amend/…).
Implementations§
Trait Implementations§
Source§impl Clone for ReflogAnomaly
impl Clone for ReflogAnomaly
Source§fn clone(&self) -> ReflogAnomaly
fn clone(&self) -> ReflogAnomaly
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 ReflogAnomaly
impl Debug for ReflogAnomaly
impl Eq for ReflogAnomaly
Source§impl Observation for ReflogAnomaly
impl Observation for ReflogAnomaly
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 ReflogAnomaly
impl PartialEq for ReflogAnomaly
Source§fn eq(&self, other: &ReflogAnomaly) -> bool
fn eq(&self, other: &ReflogAnomaly) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReflogAnomaly
Auto Trait Implementations§
impl Freeze for ReflogAnomaly
impl RefUnwindSafe for ReflogAnomaly
impl Send for ReflogAnomaly
impl Sync for ReflogAnomaly
impl Unpin for ReflogAnomaly
impl UnsafeUnpin for ReflogAnomaly
impl UnwindSafe for ReflogAnomaly
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