ExStreamClient.Model.LabelResultResponse (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a LabelResultResponse

Summary

Functions

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

Types

t()

@type t() :: %ExStreamClient.Model.LabelResultResponse{
  category: String.t(),
  content: String.t(),
  content_id: String.t() | nil,
  content_type: String.t(),
  created_at: DateTime.t() | integer() | String.t(),
  directed_at: String.t() | nil,
  harm_type: String.t(),
  id: String.t(),
  labels: [String.t()],
  language: String.t(),
  masked_content: String.t() | nil,
  policy: String.t() | nil,
  recommended_action: String.t(),
  severity: String.t(),
  user_id: String.t() | nil
}

Functions

decode(map)

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

nested_components()