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

json method receives plain serialize #2052

Merged
merged 3 commits into from Mar 7, 2021
Merged

json method receives plain serialize #2052

merged 3 commits into from Mar 7, 2021

Conversation

robjtede
Copy link
Member

@robjtede robjtede commented Mar 7, 2021

PR Type

Refactor

PR Checklist

  • Tests for the changes have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Following on from discussion in issue (tl;dr we want to support T and &T with a single method and generall support as many variants of Serialize as possible), this might be a suitable replacement for the weird signature .json has now while supporting all it's current use cases and more; plus better error messages.

closes #2047

@robjtede robjtede added A-http project: actix-http B-semver-minor A-web project: actix-web labels Mar 7, 2021
@robjtede robjtede requested review from a team March 7, 2021 19:49
Copy link
Member

@ibraheemdev ibraheemdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-http project: actix-http A-web project: actix-web B-semver-minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ResponseBuilder::json requiring the argument to impl Deref is confusing (4.0.0-beta.3)
3 participants