Anvil.Label (Anvil v0.1.1)

View Source

Represents a label submitted by a labeler for an assignment.

Labels are validated against the queue's schema before being stored.

Summary

Functions

Creates a new label.

Types

t()

@type t() :: %Anvil.Label{
  assignment_id: String.t(),
  created_at: DateTime.t(),
  errors: [map()],
  id: String.t(),
  labeler_id: String.t(),
  labeling_time_seconds: non_neg_integer() | nil,
  sample_id: String.t(),
  valid?: boolean(),
  values: map()
}

Functions

new(opts)

@spec new(keyword()) :: t()

Creates a new label.