Add an Attachment type to axum-extra (#2789)

This commit is contained in:
joeydewaal
2024-06-19 14:28:15 +02:00
committed by GitHub
parent 806bc26e62
commit fcb45b8d32
8 changed files with 119 additions and 10 deletions
+1 -2
View File
@@ -23,8 +23,7 @@ use std::marker::PhantomData;
/// Additionally, a `JsonRejection` error will be returned, when calling `deserialize` if:
///
/// - The body doesn't contain syntactically valid JSON.
/// - The body contains syntactically valid JSON, but it couldn't be deserialized into the target
/// type.
/// - The body contains syntactically valid JSON, but it couldn't be deserialized into the target type.
/// - Attempting to deserialize escaped JSON into a type that must be borrowed (e.g. `&'a str`).
///
/// ⚠️ `serde` will implicitly try to borrow for `&str` and `&[u8]` types, but will error if the