Skip to main content

Module presentation

Module presentation 

Source
Expand description

Verb response presentation modes and transformation.

Transforms canonical handler output into caller-appropriate form after dispatch and before wire serialization. Agent mode abbreviates UUIDs/timestamps and drops empty fields; Verbose and Human pass through canonical JSON unchanged.

This module also contains the OutputFormat axis (ADR-078) which governs how the resulting serde_json::Value is serialized or rendered to an output string. PresentationMode and OutputFormat compose independently.

Enums§

OutputFormat
Output serialization format for verb results (ADR-078).
PresentationMode
How the response envelope is presented to the caller.

Functions§

apply_redundancy_drop
Apply the view-only redundancy-reduction pre-pass (ADR-078 §7) to a value.
micros_to_iso
Convert a microsecond epoch i64 to an RFC 3339 / ISO-8601 string.
present
Transform a successful verb result value according to the given PresentationMode.
render_format
Render a successful verb result value to a wire string using the given format.