Page MenuHomeDevCentral

Support .into_json_response() with Axum
ClosedPublic

Authored by dereckson on Sep 24 2025, 17:41.
Tags
None
Referenced Files
F56929526: D3718.id9621.diff
Wed, Nov 11, 01:10
F56908500: D3718.id.diff
Tue, Nov 10, 15:25
F56862372: D3718.id9620.diff
Tue, Nov 10, 03:59
F56770605: D3718.diff
Mon, Nov 9, 05:00
F56759449: D3718.id9620.diff
Mon, Nov 9, 02:10
F56722278: D3718.id9620.diff
Sun, Nov 8, 15:30
F56636545: D3718.diff
Sat, Nov 7, 21:24
F56412511: D3718.id9621.diff
Thu, Nov 5, 22:38
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.