# `ExWapp.Media.Ref`
[🔗](https://github.com/elchemista/ex_wapp/blob/v0.1.5/lib/ex_wapp/media/ref.ex#L1)

Downloadable media reference extracted from an inbound message or upload.

This is the minimum information required to fetch encrypted media bytes and
verify/decrypt them locally.

# `t`

```elixir
@type t() :: %ExWapp.Media.Ref{
  direct_path: binary() | nil,
  file_enc_sha256: binary() | nil,
  file_length: non_neg_integer() | nil,
  file_sha256: binary() | nil,
  media_key: binary() | nil,
  media_key_timestamp: non_neg_integer() | nil,
  metadata: map(),
  mimetype: binary() | nil,
  type: ExWapp.Media.download_type(),
  url: binary() | nil
}
```

---

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