lib/schemas/deployment/branch_policy_name_pattern.ex
defmodule GitHub.Deployment.BranchPolicyNamePattern do
@moduledoc """
Provides struct and type for a Deployment.BranchPolicyNamePattern
"""
use GitHub.Encoder
@type t :: %__MODULE__{__info__: map, name: String.t()}
defstruct [:__info__, :name]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[name: {:string, :generic}]
end
end