A structured generation diagnostic.
@type t() :: %PostgresToEcto.Diagnostic{ code: atom(), message: String.t(), severity: :error | :warning }