Page MenuHomeDevCentral

Support .into_json_response() with Axum
ClosedPublic

Authored by dereckson on Sep 24 2025, 17:41.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 31, 08:52
Unknown Object (File)
Fri, Jan 30, 20:05
Unknown Object (File)
Fri, Jan 30, 18:45
Unknown Object (File)
Tue, Jan 27, 12:37
Unknown Object (File)
Mon, Jan 26, 18:54
Unknown Object (File)
Sun, Jan 25, 14:58
Unknown Object (File)
Fri, Jan 23, 19:21
Unknown Object (File)
Thu, Jan 22, 19:08
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.