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;
pub use render::Verbosity;

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.
TenantColumn
Tenant-scope predicate slot. Phase 241 leaves this None on every plan; Phase 242 fills it (column name only — the runtime tenant_id is injected by the executor from the dispatch_write tenant_id parameter, never stored here).
Transition
A transition between two states, triggered by an event.
TransitionPlan
A serializable description of a state-transition write, derived from the declared StateMachine + ActionDef.

Enums§

Cardinality
Structural cardinality of a service-to-service relationship.
CrudPlan
A pure, serializable CRUD write plan — the data-only analog of TransitionPlan.
CrudVerb
The three generic CRUD write verbs derived from a projection’s opt-in flags.
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.
RenderHint
Non-visual rendering hint for URL/ImageUrl fields.
Warning
Structural warnings from service and state machine validation.

Functions§

derive_crud_plan
Derives a pure CrudPlan for verb from the service declaration and agent inputs.
derive_intents
Derives ranked intents from a ServiceDef’s structural signals.
derive_transition_plan
Derives the TransitionPlan for action_name from the service’s declared state machine.
infer_meaning
Infers a FieldMeaning from a field name using common naming conventions.