Skip to content

Has ResponseBuilder::json<T> been broken? #2058

Answered by robjtede
Overdash asked this question in Q&A
Discussion options

You must be logged in to vote

The easy fix is to just pass &VerificationCheckResponse {...}.

While the change to take T: ops::Deref was intentional, it was deemed slightly better to use a simpler approach and impl Serialize in more of our own structs for better DX. See #2052.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Overdash
Comment options

Answer selected by robjtede
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants