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

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!

1 Like

Would only-in work for you?

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!