mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02:00
[FIX] link to query-params-with-empty-string (#3695)
Co-authored-by: Yann Simon <[email protected]>
This commit is contained in:
co-authored by
Yann Simon
parent
8144052e74
commit
9c67c6c33a
@@ -46,7 +46,7 @@ use serde_core::de::DeserializeOwned;
|
||||
/// For handling values being empty vs missing see the [query-params-with-empty-strings][example]
|
||||
/// example.
|
||||
///
|
||||
/// [example]: https://github.com/tokio-rs/axum/blob/main/examples/query-params-with-empty-strings/src/main.rs
|
||||
/// [example]: https://github.com/tokio-rs/axum/blob/v0.8.x/examples/query-params-with-empty-strings/src/main.rs
|
||||
///
|
||||
/// While `Option<T>` will handle empty parameters (e.g. `param=`), beware when using this with a
|
||||
/// `Vec<T>`. If your list is optional, use `Vec<T>` in combination with `#[serde(default)]`
|
||||
|
||||
@@ -40,7 +40,7 @@ use serde_core::de::DeserializeOwned;
|
||||
/// For handling values being empty vs missing see the [query-params-with-empty-strings][example]
|
||||
/// example.
|
||||
///
|
||||
/// [example]: https://github.com/tokio-rs/axum/blob/main/examples/query-params-with-empty-strings/src/main.rs
|
||||
/// [example]: https://github.com/tokio-rs/axum/blob/v0.8.x/examples/query-params-with-empty-strings/src/main.rs
|
||||
///
|
||||
/// For handling multiple values for the same query parameter, in a `?foo=1&foo=2&foo=3`
|
||||
/// fashion, use [`axum_extra::extract::Query`] instead.
|
||||
|
||||
Reference in New Issue
Block a user