Skip to main content

Module schema

Module schema 

Source
Expand description

flower-core’s own constraint vocabulary, plugged into fig-schema’s generic rule engine.

fig-schema’s fig_schema::FieldRule/fig_schema::Schema are generic over the constraint type; this module supplies flower’s: a controlled vocabulary (Constraint::Enum) or a link field (Constraint::Reference, where spanning lives — the discovery backbone). flower-core never learns the word “prov”: an embedder (a prov adapter, a $schema detector, …) builds a Schema and supplies it — either through Backend::schema or by injecting it into the Model, the same way managed keys arrive today.

Enums§

Constraint
A value constraint on a field.

Traits§

FieldRuleExt
Convenience accessors for a flower FieldRule, mirroring what used to be inherent methods before fig_schema::FieldRule became generic. A local trait, since inherent impls can’t be added to a foreign generic type.

Type Aliases§

FieldRule
flower’s field rule and schema, with flower’s own Constraint plugged into fig-schema’s generic engine.
Schema