Expand description
spectrafit-builder — typed Rust DSL for FitGraphSpec.
Opens the kernel to direct Rust users so they do not have to hand-write JSON
payloads. The builder produces the exact same FitGraphSpec shape the JSON
contract describes — see the builder_roundtrip integration test.
§Examples
use spectrafit_builder::FitGraphBuilder;
let g = FitGraphBuilder::new()
.add_gaussian("g0", 1.0, 0.0, 1.0)
.add_linear("baseline", 0.0, 0.5)
.build();
assert_eq!(g.nodes.len(), 2);
assert_eq!(g.schema_version, "0.1");Structs§
- FitGraph
Builder - Fluent builder for a
FitGraphSpec.
Constants§
- SCHEMA_
VERSION - Canonical schema version embedded in every builder-produced
FitGraphSpec.