# How to access meta fields in structs

**URL:** <https://discourse.dry-rb.org/t/how-to-access-meta-fields-in-structs/989>\
**Category:** dry-types\
**Created:** [January 26, 2020, 4:37am UTC](https://discourse.dry-rb.org/t/how-to-access-meta-fields-in-structs/989 "2020-01-26T04:37:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![laertispappas](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/laertispappas/32/352_2.png) [@laertispappas](https://discourse.dry-rb.org/u/laertispappas)\
**Post date:** [January 31, 2020, 12:03am UTC](https://discourse.dry-rb.org/t/how-to-access-meta-fields-in-structs/989/3 "2020-01-31T00:03:48Z")

</div>

> [@laertispappas](#):
>
> class MyClass \< Dry::Struct attribute :age, Types::Integer.meta(foo: :bar) end

Thank you mate!

---

_[View the full topic](https://discourse.dry-rb.org/t/how-to-access-meta-fields-in-structs/989)._
