pub struct BaselineData { /* private fields */ }Expand description
Baseline data for comparison.
The per-field notes below give the legacy key forms. A baseline with an
identity stores canonical keys in every field; see
BASELINE_KEY_SCHEME.
Implementations§
Source§impl BaselineData
impl BaselineData
Sourcepub const fn with_node_modules(self, state: NodeModulesState) -> Self
pub const fn with_node_modules(self, state: NodeModulesState) -> Self
Record the install state of the saving run.
Source§impl BaselineData
impl BaselineData
Sourcepub fn with_scope_reasons(self, reasons: BaselineScopeReasons) -> Self
pub fn with_scope_reasons(self, reasons: BaselineScopeReasons) -> Self
Record the channels that narrowed the saving run.
Source§impl BaselineData
impl BaselineData
Sourcepub fn from_results_with_identity(
results: &AnalysisResults,
root: &Path,
analysis_identity: SemanticAnalysisIdentity,
) -> Self
pub fn from_results_with_identity( results: &AnalysisResults, root: &Path, analysis_identity: SemanticAnalysisIdentity, ) -> Self
Build baseline keys from analysis results, stamping the given analysis identity so later loads can reject baselines produced under an incompatible analysis mode.
Every entry is a canonical key, written once for each occurrence and sorted, so the file does not change when findings move.
Sourcepub const fn analysis_identity(&self) -> &SemanticAnalysisIdentity
pub const fn analysis_identity(&self) -> &SemanticAnalysisIdentity
The analysis identity this baseline was captured under.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BaselineData
impl<'de> Deserialize<'de> for BaselineData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for BaselineData
impl Freeze for BaselineData
impl Move for BaselineData
impl RefUnwindSafe for BaselineData
impl Send for BaselineData
impl Sync for BaselineData
impl Unpin for BaselineData
impl UnsafeUnpin for BaselineData
impl UnwindSafe for BaselineData
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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