Skip to content

Add repr_omit_defaults struct option - #322

Merged
jcrist merged 1 commit into
mainfrom
repr-omit-defaults
Feb 16, 2023
Merged

Add repr_omit_defaults struct option#322
jcrist merged 1 commit into
mainfrom
repr-omit-defaults

Conversation

@jcrist

@jcrist jcrist commented Feb 16, 2023

Copy link
Copy Markdown
Member

This adds a new repr_omit_defaults config option to Struct types. If enabled, the repr will omit fields that have their default values. For large structs with lots of optional fields this makes the repr more condensed, easing readability.

Fixes #309.

This adds a new `repr_omit_defaults` config option to `Struct` types. If
enabled, the repr will omit fields that have their default values. For
large structs with lots of optional fields this makes the repr more
condensed, easing readability.
@jcrist
jcrist merged commit eb16700 into main Feb 16, 2023
@jcrist
jcrist deleted the repr-omit-defaults branch February 16, 2023 05:49
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.

Show only non-defaults when omit_defaults is set

1 participant