Page MenuHomeDevCentral

Support .into_json_response() with Axum
ClosedPublic

Authored by dereckson on Wed, Sep 24, 17:41.
Tags
None
Referenced Files
F12285518: D3718.id9620.diff
Sat, Oct 18, 12:38
Unknown Object (File)
Thu, Oct 16, 10:32
Unknown Object (File)
Thu, Oct 16, 10:32
Unknown Object (File)
Thu, Oct 16, 10:32
Unknown Object (File)
Mon, Oct 13, 22:42
Unknown Object (File)
Sun, Oct 12, 21:11
Unknown Object (File)
Sat, Oct 11, 03:31
Unknown Object (File)
Thu, Oct 9, 16:30
Subscribers
None

Details

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

Diff Detail

Repository
rLF Limiting Factor
Lint
Lint Passed
Unit
No Test Coverage
Branch
everything-is-core
Build Status
Buildable 5962
Build 6244: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Wed, Sep 24, 17:41
This revision was automatically updated to reflect the committed changes.