Skip to main content

Crate made_api

Crate made_api 

Source
Expand description

The published contract of the embedded MADE.

This crate is what a consuming product is allowed to know. It holds plain views, a capability report, an error vocabulary and one trait — and no domain types, no adapters, no storage. A consumer that compiles against this crate alone can be tested with a stub and swapped onto any implementation that honours the same contract.

Versioned deliberately. CONTRACT_VERSION moves when the meaning of this surface changes, independently of the library’s own release number: two builds of the same release can differ in features, and a consumer that guessed capabilities from a version string would find out mid-run. Consumers check ApiCapabilities at startup instead.

Vocabulary note (ADR-001): these types speak the engine’s own language — ceremonies. A consuming product maps them to its own terms at its own boundary; nothing of that product’s vocabulary appears here.

Structs§

ApiCapabilities
What an implementation says it is and what it can do.
BudgetBalance
BudgetLimits
Optional positive ceilings for a ceremony tree. At least one must be set. An explicit zero is rejected; only None leaves a dimension unlimited.
BudgetQuantities
BudgetReport
BudgetReservation
CeremonyParticipant
One seat at a ceremony, as a consumer sees it.
CeremonySummary
One ceremony instance, as a consumer sees it.
DefinitionAnalysisView
What analysis found — all of it.
DefinitionDefectView
One defect found while analyzing a definition draft.
InterventionResponseView
One answer given at the table.
InterventionView
One intervention — a question, investigation or proposed action put to the table — as a consumer sees it.
PublishedDefinitionView
A definition that is now published, or already was.
RaiseInterventionRequest
Request to put a question, investigation or proposed action to the table.
RecalledEntryView
One thing an earlier session left behind, as a consumer sees it.
RecollectionView
What earlier sessions in a ceremony’s memory scope decided, as that ceremony was told when it opened.
RespondToInterventionRequest
Request to answer an open intervention.
StartCeremonyRequest
Start a ceremony instance from a published definition.

Enums§

ApiError
How this contract fails.

Constants§

CONTRACT_VERSION
The revision of this contract.

Traits§

CeremonyEngineApi
What a consuming product may ask of the embedded engine.