Packages

A client for [Stream](https://getstream.io) REST APIs in Elixir - auto generated from their [OpenAPI specification](https://github.com/GetStream/protocol).

Current section

Files

Jump to
ex_stream_client lib ex_stream_client model automod_rule.ex
Raw

lib/ex_stream_client/model/automod_rule.ex

defmodule ExStreamClient.Model.AutomodRule do
@moduledoc "Schema representing a AutomodRule"
use ExStreamClient.JSON
use ExStreamClient.TypeInterner
@enforce_keys [:action, :label, :threshold]
defstruct [:action, :label, :threshold]
@nested_components action: :atom
def nested_components do
@nested_components
end
@type t :: %__MODULE__{
action: :bounce_remove | :bounce_flag | :bounce | :remove | :shadow | :flag,
label: String.t(),
threshold: float()
}
end