HomeDevCentral

Support .into_json_response() with Axum

Description

Support .into_json_response() with Axum

Summary:
Allow to convert an arbitrary type into a API JSON response
simply adding .into_json_response().

For Alkane, adding FailureResponse trait to handle the errort part of a Result.

Ref T2133

Test Plan: Tested with D3717 for Alkane

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T2133

Differential Revision: https://devcentral.nasqueron.org/D3718

Details

Provenance
derecksonAuthored on Wed, Sep 24, 17:37
derecksonPushed on Wed, Sep 24, 17:42
Reviewer
dereckson
Differential Revision
D3718: Support .into_json_response() with Axum
Parents
rLFfc3f0ef1cc6c: Port RequestBody guard to an axum extractor
Branches
Unknown
Tags
Unknown
Tasks
T2133: Migrate Alkane to axum