# Documenting defstruct fields

**URL:** <https://forum.elixirforum.com/t/documenting-defstruct-fields/10295>\
**Category:** Questions\
**Tags:** defstruct, moduledoc\
**Created:** [November 24, 2017, 10:36am UTC](https://forum.elixirforum.com/t/documenting-defstruct-fields/10295 "2017-11-24T10:36:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![LostKobrakai](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/lostkobrakai/32/3072_2.png) [@LostKobrakai](https://forum.elixirforum.com/u/LostKobrakai)\
**Post date:** [November 24, 2017, 10:38am UTC](https://forum.elixirforum.com/t/documenting-defstruct-fields/10295/2 "2017-11-24T10:38:55Z")

</div>

I always add a typespec for `@type t :: …` if the struct is of importance and there you’ve got `@typedoc`.

---

_[View the full topic](https://forum.elixirforum.com/t/documenting-defstruct-fields/10295)._
