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

[serde] Implement serde Serializer/Deserializer::is_human_readable #791

Closed
wants to merge 1 commit into from

Conversation

theli-ua
Copy link

Will return true for text encodings, false for binary. is_human_readable is used to determine whether Serialize implementations should serialize in human-readable form.

Some types have a human-readable form that may be somewhat expensive to construct, as well as a binary form that is compact and efficient.

Fixes issue 790

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Will return true for text encodings, false for binary.
is_human_readable is used to determine whether Serialize implementations
should serialize in human-readable form.

Some types have a human-readable form that may be somewhat expensive
to construct, as well as a binary form that is compact and efficient.

Fixes amazon-ion#790
@desaikd
Copy link
Contributor

desaikd commented Jul 1, 2024

As per offline discussion, this PR requires changes on serialization side to use WriteConfig and deserialization side to use SystemReader. Follow #792 for these changes.

@desaikd desaikd closed this Jul 1, 2024
@desaikd desaikd mentioned this pull request Jul 2, 2024
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