# \#classy\_structs

**URL:** https://forum.elixirforum.com/tag/classy-structs/637.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Draft - enforce typed structs and validation rules with draft schema](https://forum.elixirforum.com/t/draft-enforce-typed-structs-and-validation-rules-with-draft-schema/74631)

<div class="topic-metadata">

**Author:** [@2p4b](https://forum.elixirforum.com/u/2p4b)\
**Replies:** 2\
**Last updated:** [March 25, 2026, 6:17am UTC](https://forum.elixirforum.com/t/draft-enforce-typed-structs-and-validation-rules-with-draft-schema/74631 "2026-03-25T06:17:08Z")

</div>

Define typed structs with built-in validation. Draft allows developers to describe the structure of data and enforce constraints when constructing structs, helping ensure that invalid data never enters your domain. Inst…

---

## [Classy structs: inheritance and polymorphism on top of structs](https://forum.elixirforum.com/t/classy-structs-inheritance-and-polymorphism-on-top-of-structs/14208)

<div class="topic-metadata">

**Author:** [@timmolderez](https://forum.elixirforum.com/u/timmolderez)\
**Replies:** 8\
**Last updated:** [May 16, 2018, 6:26pm UTC](https://forum.elixirforum.com/t/classy-structs-inheritance-and-polymorphism-on-top-of-structs/14208 "2018-05-16T18:26:08Z")

</div>

Hi all, I made a tiny macro library that adds object-oriented features, such as inheritance and polymorphism, on top of structs. Github: GitHub - timmolderez/classy-structs: Adds object-oriented features, such as inher…
