# Importing all struct features? \[inverse of struct-out\]

**URL:** <https://racket.discourse.group/t/importing-all-struct-features-inverse-of-struct-out/3104>\
**Category:** Questions & Answers\
**Created:** [August 16, 2024, 7:40pm UTC](https://racket.discourse.group/t/importing-all-struct-features-inverse-of-struct-out/3104 "2024-08-16T19:40:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg\_Davidson](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Greg\_Davidson](https://racket.discourse.group/u/Greg_Davidson)\
**Post date:** [August 16, 2024, 7:40pm UTC](https://racket.discourse.group/t/importing-all-struct-features-inverse-of-struct-out/3104/1 "2024-08-16T19:40:12Z")

</div>

I can conveniently provide all of a structure's features, including its id, with a struct-out clause inside of a provide form. Is there an inverse for importing such in a require form without importing everything unrelated as well? I'm imagining something like a struct-in clause but no such feature exists. Thanks for any suggestions!

---

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [August 16, 2024, 8:39pm UTC](https://racket.discourse.group/t/importing-all-struct-features-inverse-of-struct-out/3104/2 "2024-08-16T20:39:59Z")

</div>

Would `only-in` work for you?

---

<div class="post-metadata">

**Author:** ![Greg\_Davidson](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Greg\_Davidson](https://racket.discourse.group/u/Greg_Davidson)\
**Post date:** [September 12, 2024, 7:03pm UTC](https://racket.discourse.group/t/importing-all-struct-features-inverse-of-struct-out/3104/3 "2024-09-12T19:03:09Z")

</div>

For a structure with n fields, only-in requires that I list n+3 bindings and update that text if I change any of the structure's components. That's the clumsiness which struct-out fixes for export - but what about import? I'm looking for something like (only-in "foo.rkt" (struct-in foo)) which would be symmetrical with struct-out. If anything with this functionality exists, I'm not finding it!
