abstract struct Meilisearch::Crystal::Task

Overview

A complete task response dispatched to a concrete subtype by task type.

Direct Known Subclasses

Defined in:

meilisearch/crystal/task.cr

Constructors

Macro Summary

Instance Method Summary

Instance methods inherited from struct Meilisearch::Crystal::BasicTask

canceled? : Bool canceled?, enqueued_at : Time enqueued_at, failed? : Bool failed?, finished_at : Time | Nil finished_at, index_uid : String | Nil index_uid, started_at : Time | Nil started_at, status : Status status, succeeded? : Bool succeeded?, terminal? : Bool terminal?, type : Type type, uid : Int64 uid

Constructor methods inherited from struct Meilisearch::Crystal::BasicTask

new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new

Constructor Detail

def self.from_json(source : String | IO) : Task #

[View source]
def self.new(pull : JSON::PullParser) : Task #

A complete task response dispatched to a concrete subtype by task type.


[View source]

Macro Detail

macro parseable #

Adds a non-dispatching parser to a concrete task subtype.


[View source]

Instance Method Detail

def batch_uid : Int64 | Nil #

[View source]
def canceled_by : Int64 | Nil #

[View source]
def duration : Time::Span | Nil #

[View source]
def error : Error | Nil #

[View source]