pub struct Baseline {
pub modules: Vec<ModuleEntry>,
pub params: Vec<ParamEntry>,
pub dataflow: Vec<String>,
}Expand description
Parsed / rendered baseline document.
Fields§
§modules: Vec<ModuleEntry>§params: Vec<ParamEntry>§dataflow: Vec<String>Pre-normalized dataflow finding lines (sorted, unique).
Implementations§
Source§impl Baseline
impl Baseline
Sourcepub fn from_structure(
structure: &Structure,
dataflow_lines: &[impl AsRef<str>],
) -> Self
pub fn from_structure( structure: &Structure, dataflow_lines: &[impl AsRef<str>], ) -> Self
Build a deterministic baseline from a structure plus optional dataflow lines.
dataflow_lines are treated as already-normalized findings: trimmed, empty lines
dropped, then sorted and deduplicated. This keeps the hook independent of any future
dataflow module.
Sourcepub fn parse(text: &str) -> Result<Self, BaselineError>
pub fn parse(text: &str) -> Result<Self, BaselineError>
Parse a baseline document from text.
Trait Implementations§
impl Eq for Baseline
impl StructuralPartialEq for Baseline
Auto Trait Implementations§
impl Freeze for Baseline
impl RefUnwindSafe for Baseline
impl Send for Baseline
impl Sync for Baseline
impl Unpin for Baseline
impl UnsafeUnpin for Baseline
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