How to implement custom deserialization for a DOM-like type containing non-serializable resources?
I’m implementing a unified parameter extractor Params for axum that can handle parameters from Path/Query/Form/Multipart. I have a custom DOM-like type that stores both JSON data and uploaded files:
How to Trigger Specific Error for Enum Deserialization Failure in Axum with Serde?
I’m working on an Axum-based application in Rust, where one of my handlers receives a JSON payload that is deserialized into a MyRequest
struct. The struct contains a field my_enum
of type MyEnum
, which is an enum with variants Foo
and Bar
.