# `MDL.Encoded`
[🔗](https://github.com/zthacker/mdl/blob/v0.2.0/bindings/elixir/lib/mdl/encoded.ex#L1)

An encoded command (spec/api.md section 3.2).

* `:family`, `:set`, `:packet`, `:command`: strings.
* `:def_version`: the set artifact's digest, to keep with what was sent.
* `:payload`: what the link sends, a binary; a JSON family's payload is
  its UTF-8 text.
* `:metadata`: the values the link frames the payload with, by name: a
  map of strings to integers or strings.
* `:defaulted`: the arguments the request left out, which took their
  defaults, in the catalog's order.
* `:deprecated`: the catalog's deprecation note, or `nil`.
* `:record`: each field's and checksum's raw value, as decoding the
  payload gives them.

# `t`

```elixir
@type t() :: %MDL.Encoded{
  command: String.t(),
  def_version: String.t(),
  defaulted: [String.t()],
  deprecated: String.t() | nil,
  family: String.t(),
  metadata: %{optional(String.t()) =&gt; integer() | String.t()},
  packet: String.t(),
  payload: binary(),
  record: %{optional(String.t()) =&gt; MDL.value()},
  set: String.t()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
