Skip to main content

Crate ferro_projections

Crate ferro_projections 

Source
Expand description

Service projection definitions for the Ferro framework.

Re-exports§

pub use render::template::TemplateRenderer;
pub use render::BaseContext;
pub use render::Renderer;

Modules§

render
Rendering abstraction layer for service projections.

Structs§

ActionDef
A business operation schema describing what an action does and what it needs.
FieldDef
A field definition within a service projection.
FieldMetadata
Metadata for a single model field.
GuardDef
A named boolean condition that guards action execution or state transitions.
InputDef
An input parameter definition for an action.
IntentScore
A scored intent with confidence and the structural signals that contributed.
ModelMetadata
Intermediate representation of a model for ServiceDef derivation.
RelationshipDef
A service-to-service relationship declaration.
ServiceDef
A service definition describing a domain entity and its fields.
StateDef
A state within a state machine.
StateMachine
A state machine schema describing lifecycle states and transitions.
Transition
A transition between two states, triggered by an event.

Enums§

Cardinality
Structural cardinality of a service-to-service relationship.
DataType
Abstract data type categories for service fields.
Error
FieldMeaning
Semantic meaning of a field, driving rendering and behavior decisions.
Intent
Structurally-derivable intent classification for a service.
IntentHint
Manual override for intent derivation when structural analysis is wrong.
NavigationHint
Presentational hint for how a relationship should be rendered in UI.
Warning
Structural warnings from service and state machine validation.

Functions§

derive_intents
Derives ranked intents from a ServiceDef’s structural signals.
infer_meaning
Infers a FieldMeaning from a field name using common naming conventions.