# `ZenohexPico.Sample`

A sample returned by a Zenoh query or delivered to a subscriber.

This struct corresponds to a Zenoh sample and contains its key expression,
payload, metadata, and optional attachment or timestamp.

# `t`

```elixir
@type t() :: %ZenohexPico.Sample{
  attachment: binary() | nil,
  congestion_control: :block | :drop,
  encoding: String.t(),
  express: boolean(),
  key_expr: String.t(),
  kind: :put | :delete,
  payload: binary(),
  priority:
    :real_time
    | :interactive_high
    | :interactive_low
    | :data_high
    | :data
    | :data_low
    | :background,
  timestamp: String.t() | nil
}
```

---

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