yera.runtime.handlers.result.result_render

Render persisted result values through the shared typed-data grammar.

Symbols

class ResultRenderer — Adapt a completed persisted result to the shared typed-data renderer.

ResultRenderer

Adapt a completed persisted result to the shared typed-data renderer.

Methods

__init__ — Initialize from successful result event data.
body — Render the result's structured body.
raw — Render the result's syntax-highlighted raw JSON view.

ResultRenderer.__init__

__init__(
    data: SuccessResultData,
) → None

Initialize from successful result event data.

Parameters

data
type: SuccessResultData

Persisted successful result data.

ResultRenderer.body

body() → str

Render the result's structured body.

Returns

type: str

HTML presenting the result using its declared schema.

ResultRenderer.raw

raw() → str

Render the result's syntax-highlighted raw JSON view.

Returns

type: str

HTML containing the serialized result.