defmodule GitHub.Repository.Rule.CommitterEmailPattern do @moduledoc """ Provides struct and type for a Repository.Rule.CommitterEmailPattern """ use GitHub.Encoder @type t :: %__MODULE__{__info__: map, parameters: map | nil, type: String.t()} defstruct [:__info__, :parameters, :type] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [parameters: :map, type: {:const, "committer_email_pattern"}] end end