# Defining types for struct fields

**URL:** <https://forum.elixirforum.com/t/defining-types-for-struct-fields/34929>\
**Category:** Questions\
**Tags:** beginners-questions\
**Created:** [October 14, 2020, 3:20pm UTC](https://forum.elixirforum.com/t/defining-types-for-struct-fields/34929 "2020-10-14T15:20:33Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![stevensonmt](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/stevensonmt/32/20503_2.png) [@stevensonmt](https://forum.elixirforum.com/u/stevensonmt)\
**Post date:** [October 14, 2020, 4:01pm UTC](https://forum.elixirforum.com/t/defining-types-for-struct-fields/34929/7 "2020-10-14T16:01:03Z")

</div>

Oh, I see, `struct` vs `struct!` in the constructor function. Thanks!

---

_[View the full topic](https://forum.elixirforum.com/t/defining-types-for-struct-fields/34929)._
