Packages

Elixir client for the S2 durable stream API

Current section

Files

Jump to
s2_client lib s2 schemas read_write_permissions.ex
Raw

lib/s2/schemas/read_write_permissions.ex

defmodule S2.ReadWritePermissions do
@moduledoc """
Provides struct and type for a ReadWritePermissions
"""
@type t :: %__MODULE__{read: boolean | nil, write: boolean | nil}
defstruct [:read, :write]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[read: :boolean, write: :boolean]
end
end