Skip to main content

Module compliance

Module compliance 

Source
Expand description

Format-neutral template application and compliance validation.

Structs§

ObservedMember
One authored property or quantity as observed in a caller’s own model, used as validation input against a crate::definition::SetTemplate.
ObservedSet
One authored property or quantity set as observed in a caller’s own model, the validate input paired with a template.
ValidationIssue
One deviation found while validating an ObservedSet against a template.
ValidationPolicy
Validation rules applied by validate.
ValidationReport
Every deviation found by one validate call.

Enums§

MemberForm
Value form of one observed member, mirrors crate::definition::PropertyKind or a quantity value.
UnexpectedMemberPolicy
How validate treats an observed member that the template does not declare.
ValidationCode
Category of one ValidationIssue, identifying which check produced it.
ValidationSeverity
Severity of one ValidationIssue.

Traits§

TemplateSink
Adapter boundary for creating authored data from a catalog template.

Functions§

apply_template
Walk template’s properties or quantities in order, calling sink’s begin/property/quantity/finish callbacks. Stops and returns the first callback error; the sink is responsible for any rollback.
validate
Check an ObservedSet against a SetTemplate’s expected members and return every deviation found under policy. Never fails; disagreements are reported as issues, not as a Result error.