Skip to content

ResponseMessage

[Source]

class val ResponseMessage is
  Message ref

Implements


Constructors

create

[Source]

Constructor for a Response to a Request bearing a request id

new val create(
  id': (I64 val | String val | None val),
  result': (F64 val | I64 val | Bool val | 
    None val | String val | JsonArray val | 
    JsonObject val),
  error': (ResponseError val | None val) = reference)
: ResponseMessage val^

Parameters

Returns


Public fields

let id: (I64 val | String val | None val)

[Source]


let result: (F64 val | I64 val | Bool val | None val | String val | JsonArray val | JsonObject val)

[Source]


Public Functions

json

[Source]

fun box json()
: JsonObject val

Returns


string

[Source]

fun box string()
: String iso^

Returns