Skip to main content

Module wire

Module wire 

Source
Expand description

The JSON a caller sends and the JSON this server answers with.

Nothing here restates a contract type. A request carries the values one [PrintAction] variant needs and this module assembles the action; an answer carries the contract’s own records as they are. In particular no answer carries image bytes: ImageAnswer carries the record and the absolute path its bytes are at, because the server, the command-line program and the agent all run on the one host and image transport is a filesystem path.

Structs§

ActionAnswer
What one mutating request left behind it.
ActionBody
One request for one action of the vocabulary.
BodyRefusal
Why a request could not be turned into one action of the vocabulary.
ContextAnswer
What a context read answers.
ErrorAnswer
What this server answers when it will not do what it was asked.
HistoryAnswer
What a history read answers.
ImageAnswer
What an image read answers.
IngressAnswer
What the ingress answers a post it accepted.
ManifestAnswer
What a manifest read or write answers.
ManifestBody
One request to replace a print’s manifest.
StatusAnswer
What a status read answers.

Functions§

reason_of
The reason a mutating request carries, refused when it carries none.