Current section

Files

Jump to
opencode_sdk lib opencode generated todo.ex
Raw

lib/opencode/generated/todo.ex

defmodule OpenCode.Generated.Todo do
@moduledoc """
Provides struct and type for a Todo
"""
@type t :: %__MODULE__{content: String.t(), priority: String.t(), status: String.t()}
defstruct [:content, :priority, :status]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[content: :string, priority: :string, status: :string]
end
end