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

feat(Rust): Add option to skip serializing empty optional fields #2397

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

gudjonragnar
Copy link
Contributor

Adds an option --skip-serializing-none for Rust. With the option on, it will instruct serde to skip serializing the optional fields if they are empty (None).

Can reduce the size and noisiness of the json output for large structs with many optional fields.

@gudjonragnar gudjonragnar changed the title Rust: Add option to skip serializing empty optional fields feat(Rust): Add option to skip serializing empty optional fields Sep 13, 2023
@dvdsgl dvdsgl enabled auto-merge (squash) February 14, 2024 13:15
@dvdsgl dvdsgl merged commit 67cc045 into glideapps:master Feb 14, 2024
10 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants