pub enum BaselinePruneRefusal {
Parse(String),
NotThisKind {
saved_by: Option<BaselineKind>,
},
LegacyKeys,
UnknownKeyScheme(String),
IncompatibleIdentity(Vec<&'static str>),
SharedCloneKeys,
UnknownFields(Vec<String>),
ScopeMismatch {
saved_only: BaselineMode,
run_only: BaselineMode,
},
}Expand description
Why a baseline file cannot be pruned. The file stays as it is.
Variants§
Parse(String)
The file is not valid JSON or not a valid baseline of this kind.
NotThisKind
Another command saved the file, or nothing in it names this kind.
Fields
saved_by: Option<BaselineKind>The command that saved the file, when the file names one.
LegacyKeys
The file uses a key form from an older version, which prune cannot match entry by entry.
UnknownKeyScheme(String)
The file uses a key scheme that this version does not know.
IncompatibleIdentity(Vec<&'static str>)
The file was saved with another analysis identity, for example a type-aware run. The fields that differ are listed.
The duplication baseline holds clone keys that older versions shared between unrelated groups (issue #3290).
UnknownFields(Vec<String>)
The file has fields that this version does not know, probably from a newer version. A rewrite would drop them.
ScopeMismatch
The file and the run differ in a mode that decides which findings exist. A prune would remove entries that are valid in the mode of the file.
Fields
saved_only: BaselineModeThe channels the file records and this run does not use.
run_only: BaselineModeThe channels this run uses and the file does not record. A file saved before the file recorded its scope reads the same as a file saved without the channel.
Implementations§
Trait Implementations§
Source§impl Clone for BaselinePruneRefusal
impl Clone for BaselinePruneRefusal
Source§impl Debug for BaselinePruneRefusal
impl Debug for BaselinePruneRefusal
impl Eq for BaselinePruneRefusal
Source§impl PartialEq for BaselinePruneRefusal
impl PartialEq for BaselinePruneRefusal
impl StructuralPartialEq for BaselinePruneRefusal
Auto Trait Implementations§
impl Forget for BaselinePruneRefusal
impl Freeze for BaselinePruneRefusal
impl RefUnwindSafe for BaselinePruneRefusal
impl Send for BaselinePruneRefusal
impl Sync for BaselinePruneRefusal
impl Unpin for BaselinePruneRefusal
impl UnsafeUnpin for BaselinePruneRefusal
impl UnwindSafe for BaselinePruneRefusal
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
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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