Page MenuHomeDevCentral

Support .into_json_response() with Axum
ClosedPublic

Authored by dereckson on Sep 24 2025, 17:41.
Tags
None
Referenced Files
F42758970: D3718.diff
Sun, Aug 9, 04:43
Unknown Object (File)
Wed, Aug 5, 04:16
Unknown Object (File)
Tue, Aug 4, 21:40
Unknown Object (File)
Mon, Aug 3, 23:54
Unknown Object (File)
Mon, Aug 3, 21:41
Unknown Object (File)
Mon, Aug 3, 17:21
Unknown Object (File)
Sun, Aug 2, 19:24
Unknown Object (File)
Fri, Jul 24, 00:50
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.