Page MenuHomeDevCentral

Support .into_json_response() with Axum
ClosedPublic

Authored by dereckson on Sep 24 2025, 17:41.
Tags
None
Referenced Files
F24677980: D3718.id9621.diff
Wed, Mar 4, 18:10
Unknown Object (File)
Sun, Mar 1, 18:35
Unknown Object (File)
Sun, Mar 1, 10:09
Unknown Object (File)
Sat, Feb 28, 07:17
Unknown Object (File)
Sun, Feb 22, 23:47
Unknown Object (File)
Sun, Feb 22, 19:37
Unknown Object (File)
Sat, Feb 21, 18:31
Unknown Object (File)
Sat, Feb 21, 18:24
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.