pub enum BaselinePruneRefusal {
Parse(String),
NotThisKind {
saved_by: Option<BaselineKind>,
},
LegacyKeys,
UnknownKeyScheme(String),
IncompatibleIdentity(Vec<&'static str>),
SharedCloneKeys,
UnknownFields(Vec<String>),
}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.
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 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
Mutably borrows from an owned value. Read more
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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§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> ⓘ
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