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

Represents a collection on HuggingFace Hub.

Collections enable organizing and curating lists of models, datasets, and spaces.

# `t`

```elixir
@type t() :: %HfHub.Collections.Collection{
  created_at: DateTime.t() | nil,
  description: String.t() | nil,
  items: [HfHub.Collections.CollectionItem.t()],
  owner: String.t(),
  position: non_neg_integer() | nil,
  private: boolean(),
  slug: String.t(),
  theme: String.t() | nil,
  title: String.t(),
  updated_at: DateTime.t() | nil,
  upvotes: non_neg_integer()
}
```

# `from_response`

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

Creates a Collection from API response.

---

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