murar8 / axum_typed_multipart

Type safe multipart/form-data handling for axum.
84 stars 14 forks source link

Add example of using TypedMultipart in a FromRequest implementation #45

Closed selfhoster1312 closed 1 year ago

selfhoster1312 commented 1 year ago

It took me a while to figure out the proper syntax and type bounds for extracting a TypedMultipart in FromRequest for a custom type, so i thought an example would be nice.

nerodono commented 1 year ago

Looks pretty strange to me, what do you mean by that example? It isn't clear what differ TypedMultipart extractor from built-in axum's extractors

murar8 commented 1 year ago

Hi @selfhoster1312, my opinion is that the example in the PR is a very niche use case and adding it to the repository would create confusion for first time users. Thank you anyway for taking the time to contribute to the project!