# `Arcana.DocumentMetadata`
[🔗](https://github.com/georgeguimaraes/arcana/blob/main/lib/arcana/document_metadata.ex#L1)

Sparse document attribution returned by `Arcana.get_document_metadata/2`.

This shape deliberately leaves out document content, ingestion state, and
associations. Use `to_map/1` when passing it to an encoder or another API.

# `t`

```elixir
@type t() :: %Arcana.DocumentMetadata{
  id: Ecto.UUID.t(),
  metadata: map(),
  source_id: String.t() | nil
}
```

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

Returns the documented plain-map representation of the metadata projection.

---

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