Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: From support for @mixin structs #3460

Open
spf5000 opened this issue Mar 4, 2024 · 0 comments
Open

Feature Request: From support for @mixin structs #3460

spf5000 opened this issue Mar 4, 2024 · 0 comments
Labels
customer-request enhancement New feature or request

Comments

@spf5000
Copy link

spf5000 commented Mar 4, 2024

My team currently leverages the @mixin feature in smithy to ensure types are shares across APIs and flatten API outputs instead of returning nested structs. This helps the APIs look "cleaner", but is actually a bit painful to work with in Rust because we have to create a type conversion for each type that references the mixin.

This may not be possible because the @mixin gets expanded before smithy-rs executes, but it'd be really nice to have some form of auto-generated From for Mixin support. That would let us internally work off the data in the mixin in our functions and skip the boiler plate conversions all of the time.

@jdisanti jdisanti added customer-request enhancement New feature or request labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-request enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants