pub struct Baseline {
pub schema_version: u32,
pub source_sets: SourceSetEntries<BaselineEntry>,
pub dependencies: BTreeMap<String, BaselineEntry>,
}Fields§
§schema_version: u32§source_sets: SourceSetEntries<BaselineEntry>§dependencies: BTreeMap<String, BaselineEntry>Implementations§
Source§impl Baseline
impl Baseline
pub fn load_optional( repository_root: &Path, ) -> Result<Option<Baseline>, BaselineFileError>
pub fn load_for_update( repository_root: &Path, reset: bool, ) -> Result<LoadedForUpdate<Baseline>, BaselineFileError>
pub fn parse(text: &str) -> Result<Baseline, BaselineFileError>
pub fn write_atomic( &self, repository_root: &Path, ) -> Result<PathBuf, BaselineFileError>
pub fn entry( &self, source_set: Option<SourceSet>, metric: &str, ) -> Option<&BaselineEntry>
pub fn match_findings( &self, source_set: Option<SourceSet>, metric: &str, candidates: &[FindingAnchor], ) -> AnchorMatch
pub fn match_findings_with_renames( &self, source_set: Option<SourceSet>, metric: &str, candidates: &[FindingAnchor], renames: &BTreeMap<String, String>, ) -> AnchorMatch
pub fn match_findings_with_aliases( &self, source_set: Option<SourceSet>, metric: &str, candidates: &[FindingAnchor], candidate_aliases: &[Option<FindingAnchor>], renames: &BTreeMap<String, String>, ) -> AnchorMatch
pub fn total_findings(&self) -> usize
pub fn version_mismatches( &self, measured: &[MeasuredBaselineMetric], ) -> Vec<MetricVersionMismatch>
pub fn update( existing: Option<&Baseline>, measured: &[MeasuredBaselineMetric], reset: bool, ) -> (Baseline, BaselineUpdateSummary)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Baseline
impl<'de> Deserialize<'de> for Baseline
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
impl StructuralPartialEq for Baseline
Auto Trait Implementations§
impl Forget for Baseline
impl Freeze for Baselinewhere
*const LeafNode<String, BaselineEntry> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, BaselineEntry)>>: Freeze,
impl Move for Baseline
impl RefUnwindSafe for Baseline
impl Send for Baselinewhere
NodeRef<Owned, String, BaselineEntry, LeafOrInternal>: Send,
BoxRaw<(String, BaselineEntry)>: Send,
impl Sync for Baselinewhere
NodeRef<Owned, String, BaselineEntry, LeafOrInternal>: Sync,
BoxRaw<(String, BaselineEntry)>: Sync,
impl Unpin for Baseline
impl UnsafeUnpin for Baselinewhere
*const LeafNode<String, BaselineEntry> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, BaselineEntry)>>: UnsafeUnpin,
impl UnwindSafe for Baseline
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