Page MenuHomeDevCentral

Support .into_json_response() with Axum
ClosedPublic

Authored by dereckson on Sep 24 2025, 17:41.
Tags
None
Referenced Files
F53594300: D3718.diff
Sun, Oct 11, 01:43
F53511563: D3718.diff
Sat, Oct 10, 13:36
Unknown Object (File)
Fri, Oct 9, 21:57
Unknown Object (File)
Thu, Oct 8, 23:07
Unknown Object (File)
Mon, Oct 5, 00:12
Unknown Object (File)
Thu, Oct 1, 15:53
Unknown Object (File)
Mon, Sep 28, 14:26
Unknown Object (File)
Sat, Sep 26, 00:44
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 Not Applicable
Unit
Tests Not Applicable

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.