defmodule GitHub.Codespace.UserPublicKey do @moduledoc """ Provides struct and type for a Codespace.UserPublicKey """ use GitHub.Encoder @type t :: %__MODULE__{__info__: map, key: String.t(), key_id: String.t()} defstruct [:__info__, :key, :key_id] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [key: {:string, :generic}, key_id: {:string, :generic}] end end