struct
Obsctl::IPC::Response
- Obsctl::IPC::Response
- Struct
- Value
- Object
Overview
Command response correlated to a client request by request ID.
Defined in:
obsctl/ipc/response.crConstant Summary
-
TYPE =
"response"
Constructors
Instance Method Summary
- #clone
- #copy_with(id _id = @id, ok _ok = @ok, result _result = @result, error _error = @error)
- #error : ErrorPayload | Nil
- #id : String
- #ok : Bool
- #result : JSON::Any | Nil
-
#to_json(json : JSON::Builder) : Nil
Writes the wire-format JSON object for this response.
Constructor Detail
def self.new(id : String, ok : Bool, result : JSON::Any | Nil = nil, error : ErrorPayload | Nil = nil)
#
Instance Method Detail
def copy_with(id _id = @id, ok _ok = @ok, result _result = @result, error _error = @error)
#