Available on crate feature
contract only.Expand description
Compile a ContractSpec into a CompiledContract: validate the version,
field-name uniqueness, per-type constraint compatibility, and bounds, and
compile regexes/enum sets once so the per-record pass is cheap. Failures
surface as FaucetError::Config at config-load time, never mid-run.
Structsยง
- Compiled
Contract - A fully compiled contract. Built once via
CompiledContract::compile. - Compiled
Field - One compiled field rule.