Expand description
Format-neutral template application and compliance validation.
Structs§
- Observed
Member - One authored property or quantity as observed in a caller’s own model,
used as validation input against a
crate::definition::SetTemplate. - Observed
Set - One authored property or quantity set as observed in a caller’s own
model, the
validateinput paired with a template. - Validation
Issue - One deviation found while validating an
ObservedSetagainst a template. - Validation
Policy - Validation rules applied by
validate. - Validation
Report - Every deviation found by one
validatecall.
Enums§
- Member
Form - Value form of one observed member, mirrors
crate::definition::PropertyKindor a quantity value. - Unexpected
Member Policy - How
validatetreats an observed member that the template does not declare. - Validation
Code - Category of one
ValidationIssue, identifying which check produced it. - Validation
Severity - Severity of one
ValidationIssue.
Traits§
- Template
Sink - Adapter boundary for creating authored data from a catalog template.
Functions§
- apply_
template - Walk
template’s properties or quantities in order, callingsink’sbegin/property/quantity/finishcallbacks. Stops and returns the first callback error; the sink is responsible for any rollback. - validate
- Check an
ObservedSetagainst aSetTemplate’s expected members and return every deviation found underpolicy. Never fails; disagreements are reported as issues, not as aResulterror.