Display

interface Display

A rendered JSON blob based on an on-chain template.

Properties

Link copied to clipboard
abstract val errors: Value

If any fields failed to render, this will contain a mapping from failed field names to error messages. If all fields succeed, this will either be null or not set.

Link copied to clipboard
abstract val output: Value

Output for all successfully substituted display fields. Unsuccessful fields will be null, and will be accompanied by a field in errors, explaining the error.

Link copied to clipboard

Returns the field-presence view for this Display instance.

Functions

Link copied to clipboard
Link copied to clipboard
fun Display.copy(body: <Error class: unknown class>.() -> Unit = {}): Display

Copies the original message, including unknown fields.