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

StructBuilder: support with_annotations #834

Open
mtcalvin opened this issue Sep 11, 2024 · 0 comments
Open

StructBuilder: support with_annotations #834

mtcalvin opened this issue Sep 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mtcalvin
Copy link

I'm using StructBuilder to dynamically construct/modify Ion structs. In addition to setting struct fields, I also need to add annotations to the struct.

Currently, I have to .build() the builder and then call .with_annotations([...]) on the result. It would be nice for API symmetry if annotations could be added/removed as part of the builder (like fields) instead of only on the resulting object.

@mtcalvin mtcalvin added the enhancement New feature or request label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant