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§
- Action
Answer - What one mutating request left behind it.
- Action
Body - One request for one action of the vocabulary.
- Body
Refusal - Why a request could not be turned into one action of the vocabulary.
- Context
Answer - What a context read answers.
- Error
Answer - What this server answers when it will not do what it was asked.
- History
Answer - What a history read answers.
- Image
Answer - What an image read answers.
- Ingress
Answer - What the ingress answers a post it accepted.
- Manifest
Answer - What a manifest read or write answers.
- Manifest
Body - One request to replace a print’s manifest.
- Status
Answer - What a status read answers.
Functions§
- reason_
of - The reason a mutating request carries, refused when it carries none.