Expand description
The versioned --json envelope.
Compatibility contract, and the reason this type is centralized:
- Fields may be added freely. Consumers must tolerate unknown fields.
- Fields may not be renamed, retyped, or removed without bumping
crate::store::RECORD_VERSION. warden_versiontracks the binary;record_versiontracks the shape of the rows and of this envelope. A consumer pins onrecord_version.- An unbounded end of the reporting period is reported as
null, never as a fabricated date.
Structs§
- Envelope
- The one shape every
--jsonresponse has. - Period
- The
periodof a report.nullon either end means “unbounded”.
Functions§
- iso8601
- The one timestamp rendering warden publishes. Every ISO-8601 string in a
--jsondocument — envelope period, note text, row fields — goes through here, so a consumer never sees two precisions in one response. - iso8601_
ms - The same rendering from epoch millis, for timestamps that are not already
bounded into a
DateTime.