pub fn apply_contract(
records: Vec<Value>,
contract: &CompiledContract,
) -> Result<ContractOutcome, FaucetError>Available on crate feature
contract only.Expand description
Apply the contract to one page. Pure: no metrics, no DLQ I/O.
Records are evaluated in order; per record, the first breach wins (fields in declared order, then the extra-field check). Policy:
fail— returnFaucetError::ContractViolationon the first breach.quarantine— move breaching records toquarantined.warn— record the breach inwarned, keep the record insurvivors.