# `HfHub.Collections.CollectionItem`
[🔗](https://github.com/North-Shore-AI/hf_hub_ex/blob/v0.3.1/lib/hf_hub/collections/collection_item.ex#L1)

Represents an item within a collection.

Items can be models, datasets, spaces, or papers.

# `item_type`

```elixir
@type item_type() :: :model | :dataset | :space | :paper
```

# `t`

```elixir
@type t() :: %HfHub.Collections.CollectionItem{
  added_at: DateTime.t() | nil,
  id: String.t(),
  item_id: String.t(),
  item_type: item_type(),
  note: String.t() | nil,
  position: non_neg_integer()
}
```

# `from_response`

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

Creates a CollectionItem from API response.

---

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