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

Link to this section Summary

Link to this section Types

Specs

t() :: %AvroEx.Schema.Record{
  aliases: [AvroEx.Schema.alias()],
  doc: AvroEx.Schema.doc(),
  fields: term(),
  id: term(),
  metadata: %{required(String.t()) => String.t()},
  name: AvroEx.Schema.name(),
  namespace: AvroEx.Schema.namespace(),
  qualified_names: term()
}

Link to this section Functions

Specs

cast(map()) :: {:error, any()} | {:ok, map()}
Link to this function

changeset(record, params)

View Source

Specs

changeset(t(), %{
  optional(:__struct__) => none(),
  optional(atom() | binary()) => any()
}) :: map()
Link to this function

match?(record, context, data)

View Source

Specs

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