We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93377b1 + 6589887 commit 3668e63Copy full SHA for 3668e63
_src/container-attrs.md
@@ -70,6 +70,13 @@
70
Use the untagged enum representation for this enum. See [enum representations]
71
for details on this representation.
72
73
+ When no variant matches, the error may be uninformative which can be improved with [`serde(expecting)`](#expecting).
74
+
75
+ In performance-critical code, checking each variant and processing the errors can be slow.
76
+ In these cases, it may be better to hand-implement the deserialize trait for which [serde-untagged] may help.
77
78
+ [serde-untagged]: https://docs.rs/serde-untagged
79
80
- ##### `#[serde(bound = "T: MyTrait")]` {#bound}
81
82
Where-clause for the `Serialize` and `Deserialize` impls. This replaces any
0 commit comments