Structured HostKit diagnostic, suitable for pattern matching and compiler-style rendering.
Summary
Types
@type severity() :: :error | :warning | :info
@type t() :: %HostKit.Diagnostic{ code: atom(), column: pos_integer() | nil, details: map(), file: String.t() | nil, hint: String.t() | nil, line: pos_integer() | nil, message: String.t(), resource_id: term(), severity: severity() }