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

Implement direct Result serialization #631

Closed
wants to merge 1 commit into from

Conversation

filmor
Copy link
Member

@filmor filmor commented Jul 7, 2024

serde_rustler decided to map Rust's Result<Value, Error> type to {ok, Value} | {error, Error}. While we should keep this functionality, the current implementation is flawed by handling this through actually mapping ok <-> "Ok" and error <-> "Err". We can instead detect (de)serialization of a Result object by looking at the name and variants in a variant handler.

@filmor filmor changed the title Serde Additional Serde work Jul 8, 2024
@filmor filmor changed the title Additional Serde work Implement direct Result serialization Jul 8, 2024
@filmor
Copy link
Member Author

filmor commented Jul 20, 2024

Superceded by #639.

@filmor filmor closed this Jul 20, 2024
@filmor filmor deleted the serde-fixups branch July 20, 2024 05:36
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.

1 participant