defmodule OpenAi.Chat.Completion.Deleted do @moduledoc """ Provides struct and type for a Chat.Completion.Deleted """ @type t :: %__MODULE__{deleted: boolean, id: String.t(), object: String.t()} defstruct [:deleted, :id, :object] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [deleted: :boolean, id: {:string, :generic}, object: {:const, "chat.completion.deleted"}] end end