Packages

Elixir client for the S2 durable stream API

Current section

Files

Jump to
s2_client lib s2 schemas timestamping_config.ex
Raw

lib/s2/schemas/timestamping_config.ex

defmodule S2.TimestampingConfig do
@moduledoc """
Provides struct and type for a TimestampingConfig
"""
@type t :: %__MODULE__{mode: String.t() | nil, uncapped: boolean | nil}
defstruct [:mode, :uncapped]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
mode: {:union, [{:enum, ["client-prefer", "client-require", "arrival"]}, :null]},
uncapped: {:union, [:boolean, :null]}
]
end
end