View Source AvroEx.Schema.Union (AvroEx v1.2.0)

Link to this section Summary

Link to this section Types

Specs

t() :: %AvroEx.Schema.Union{possibilities: [AvroEx.Schema.schema_types()]}

Link to this section Functions

Specs

cast(maybe_improper_list()) :: {:ok, t()} | {:error, any()}

Specs

cast_possibilities(Ecto.Changeset.t()) :: Ecto.Changeset.t()
Link to this function

changeset(union, params)

View Source

Specs

changeset(t(), term()) :: Ecto.Changeset.t()
Link to this function

match?(union, context, data)

View Source

Specs

match?(t(), AvroEx.Schema.Context.t(), any()) :: boolean()