ResponseStatus

@Serializable
value class ResponseStatus(val value: String)

State of a ModelResponse or of a single ResponseItem, serialized as the raw value the API sends.

A closed enum would fail on any status the API adds later, so the value is wrapped instead: ResponseStatus("queued") stays readable.

Constructors

Link copied to clipboard
constructor(value: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Raw status the API sent. Must not be blank.

Functions

Link copied to clipboard
open override fun toString(): String