mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 22:01:50 +01:00
Note that Form cannot require data ordering (#2283)
This commit is contained in:
parent
8846808804
commit
7535a1ade8
@ -80,6 +80,10 @@ use crate::{
|
|||||||
/// })
|
/// })
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// # Panics
|
||||||
|
/// URL encoded forms consist of unordered `key=value` pairs, therefore they cannot be decoded into
|
||||||
|
/// any type which depends upon data ordering (eg. tuples). Trying to do so will result in a panic.
|
||||||
#[derive(PartialEq, Eq, PartialOrd, Ord, Debug)]
|
#[derive(PartialEq, Eq, PartialOrd, Ord, Debug)]
|
||||||
pub struct Form<T>(pub T);
|
pub struct Form<T>(pub T);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user