-
Notifications
You must be signed in to change notification settings - Fork 132
Clean up configuration API #105
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
Comments
Hey! You can use |
I think this is part of a bigger issue, the configuration API could use some clean up. |
struct_names
bool in to_string_pretty
I've improved the config in #173, but I'm not quite sure about |
would there be any reason to not add this to I was able to work around this using |
@j-n-f the reason was outlined by a comment above yours:
|
Would a pull request to include this method of doing things in the documentation/examples be helpful? |
@j-n-f please clarify what "this method" you are referring to? |
@kvark I had to do something like the following (which is what I mean by "this method"):
This is compared to the "easy" way that
I think an example named something like |
@torkleyy I'm inclined to suggest that we just don't make this configurable for non-pretty path and skip the struct names. This would mean moving the flag into |
Yeah, let's do that. |
I'd like the ability to enable
struct_names
(viaPrettyConfig
) inron/src/ser/mod.rs
Line 34 in 5efdf12
The text was updated successfully, but these errors were encountered: