Current section
Files
Jump to
Current section
Files
lib/schemas/user/role/update_request.ex
defmodule OpenAi.User.Role.UpdateRequest do
@moduledoc """
Provides struct and type for a User.Role.UpdateRequest
"""
@type t :: %__MODULE__{role: String.t()}
defstruct [:role]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[role: {:enum, ["owner", "reader"]}]
end
end