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§
- Action
Def - A business operation schema describing what an action does and what it needs.
- Field
Def - A field definition within a service projection.
- Field
Metadata - Metadata for a single model field.
- Guard
Def - A named boolean condition that guards action execution or state transitions.
- Input
Def - An input parameter definition for an action.
- Intent
Score - A scored intent with confidence and the structural signals that contributed.
- Model
Metadata - Intermediate representation of a model for ServiceDef derivation.
- Relationship
Def - A service-to-service relationship declaration.
- Service
Def - A service definition describing a domain entity and its fields.
- State
Def - A state within a state machine.
- State
Machine - A state machine schema describing lifecycle states and transitions.
- Tenant
Column - Tenant-scope predicate slot. Phase 241 leaves this
Noneon every plan; Phase 242 fills it (column name only — the runtimetenant_idis injected by the executor from thedispatch_writetenant_idparameter, never stored here). - Transition
- A transition between two states, triggered by an event.
- Transition
Plan - A serializable description of a state-transition write, derived from the
declared
StateMachine+ActionDef.
Enums§
- Cardinality
- Structural cardinality of a service-to-service relationship.
- Crud
Plan - A pure, serializable CRUD write plan — the data-only analog of
TransitionPlan. - Crud
Verb - The three generic CRUD write verbs derived from a projection’s opt-in flags.
- Data
Type - Abstract data type categories for service fields.
- Error
- Field
Meaning - Semantic meaning of a field, driving rendering and behavior decisions.
- Intent
- Structurally-derivable intent classification for a service.
- Intent
Hint - Manual override for intent derivation when structural analysis is wrong.
- Navigation
Hint - Presentational hint for how a relationship should be rendered in UI.
- Render
Hint - Non-visual rendering hint for URL/ImageUrl fields.
- Warning
- Structural warnings from service and state machine validation.
Functions§
- derive_
crud_ plan - Derives a pure
CrudPlanforverbfrom the service declaration and agent inputs. - derive_
intents - Derives ranked intents from a ServiceDef’s structural signals.
- derive_
transition_ plan - Derives the
TransitionPlanforaction_namefrom the service’s declared state machine. - infer_
meaning - Infers a
FieldMeaningfrom a field name using common naming conventions.