# `Antd.ManifestEntryInput`
[🔗](https://gitlab.com/autonomi/ant-sdk/-/tree/main/antd-elixir/blob/main/lib/antd/manifest_models.ex#L1)

One file for `Antd.Client.build_manifest/3` and
`Antd.GrpcClient.build_manifest/3`.

Set exactly one of `data_map` or `address`; an entry with both or neither
is refused before anything is sent (`Antd.BadRequestError`).

  * `path` — the relative path the entry extracts under, subject to the
    portable path rules. `nil` (or `""`): it extracts under its content
    address.
  * `size` — the plaintext size to record, as given (the creator's claim).
    `nil`: none is recorded, and readers take the exact size from an
    embedded root DataMap.
  * `data_map` — a hex DataMap, as the upload functions return it. The
    entry embeds it: the manifest is the key to the file.
  * `address` — a public file's DataMap address (hex, 32 bytes).
  * `sha256` — the plaintext's SHA-256 (hex) to record for the entry, passed
    through as given; the daemon validates it. `nil` (or `""`): none is
    sent. Requires antd 0.17.0 or later.

## Examples

    %Antd.ManifestEntryInput{path: "notes/one.txt", address: address}
    %Antd.ManifestEntryInput{path: "secret.txt", size: 82, data_map: data_map}

# `t`

```elixir
@type t() :: %Antd.ManifestEntryInput{
  address: String.t() | nil,
  data_map: String.t() | nil,
  path: String.t() | nil,
  sha256: String.t() | nil,
  size: non_neg_integer() | nil
}
```

---

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