lib/schemas/interaction/limit.ex

defmodule GitHub.Interaction.Limit do
  @moduledoc """
  Provides struct and type for InteractionLimit
  """
  use GitHub.Encoder

  @type t :: %__MODULE__{__info__: map, expiry: String.t() | nil, limit: String.t()}

  defstruct [:__info__, :expiry, :limit]

  @doc false
  @spec __fields__(atom) :: keyword
  def __fields__(type \\ :t)

  def __fields__(:t) do
    [expiry: :string, limit: :string]
  end
end