# How to define a \`struct\` that has keyword arguments?

**URL:** <https://discourse.julialang.org/t/how-to-define-a-struct-that-has-keyword-arguments/114353>\
**Category:** General Usage\
**Tags:** question, type, struct\
**Created:** [May 16, 2024, 10:18am UTC](https://discourse.julialang.org/t/how-to-define-a-struct-that-has-keyword-arguments/114353 "2024-05-16T10:18:59Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [May 16, 2024, 2:31pm UTC](https://discourse.julialang.org/t/how-to-define-a-struct-that-has-keyword-arguments/114353/10 "2024-05-16T14:31:53Z")

</div>

> [@nilshg](#):
>
> I think this might have been recommended to you before but for these very basic questions AI is pretty good:

A simple google search is also pretty good. Googling “julia struct that can be constructed using keywords” turns up this as the first hit: [Can a struct be created with field keywords?](https://discourse.julialang.org/t/can-a-struct-be-created-with-field-keywords/27531)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-define-a-struct-that-has-keyword-arguments/114353)._
