Page MenuHomeDevCentral

Support .into_json_response() with Axum
ClosedPublic

Authored by dereckson on Sep 24 2025, 17:41.
Tags
None
Referenced Files
F19109120: D3718.id9620.diff
Tue, Dec 23, 19:08
F19079149: D3718.diff
Tue, Dec 23, 10:56
Unknown Object (File)
Thu, Dec 18, 18:55
Unknown Object (File)
Thu, Dec 11, 05:42
Unknown Object (File)
Tue, Dec 9, 00:21
Unknown Object (File)
Mon, Dec 8, 23:07
Unknown Object (File)
Mon, Dec 8, 04:24
Unknown Object (File)
Sun, Dec 7, 11:13
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.Sep 24 2025, 17:41
This revision was automatically updated to reflect the committed changes.