pub struct BaselineEntry {
pub crate_name: String,
pub crate_version: String,
pub file: String,
pub function: String,
pub call_text: String,
pub category: String,
}Expand description
A single entry in the saved baseline file.
Baseline entries are compared by value equality — if a finding’s crate, function, call text, and category all match, it’s considered the same finding across runs. This means code movement (same call, different line) won’t trigger a diff.
Fields§
§crate_name: StringName of the crate containing the finding.
crate_version: StringVersion of the crate.
file: StringSource file path.
function: StringFunction name containing the call.
call_text: StringThe expanded call path (e.g., "std::fs::read").
category: StringCategory label (e.g., "FS", "NET").
Trait Implementations§
Source§impl Clone for BaselineEntry
impl Clone for BaselineEntry
Source§fn clone(&self) -> BaselineEntry
fn clone(&self) -> BaselineEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 BaselineEntry
impl Debug for BaselineEntry
Source§impl<'de> Deserialize<'de> for BaselineEntry
impl<'de> Deserialize<'de> for BaselineEntry
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
Source§impl From<&Finding> for BaselineEntry
impl From<&Finding> for BaselineEntry
Source§impl Hash for BaselineEntry
impl Hash for BaselineEntry
Source§impl PartialEq for BaselineEntry
impl PartialEq for BaselineEntry
Source§impl Serialize for BaselineEntry
impl Serialize for BaselineEntry
impl Eq for BaselineEntry
impl StructuralPartialEq for BaselineEntry
Auto Trait Implementations§
impl Freeze for BaselineEntry
impl RefUnwindSafe for BaselineEntry
impl Send for BaselineEntry
impl Sync for BaselineEntry
impl Unpin for BaselineEntry
impl UnsafeUnpin for BaselineEntry
impl UnwindSafe for BaselineEntry
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§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.