We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97cf40a commit a661bd1Copy full SHA for a661bd1
_src/container-attrs.md
@@ -58,6 +58,9 @@
58
59
When no variant matches, the error may be uninformative which can be improved with [`serde(expecting)`](#expecting).
60
61
+ In performance-critical code, checking each variant and processing the errors can be slow.
62
+ In these cases, it may be better to hand-implement the deserialize trait for which [serde-untagged] may help.
63
+
64
- ##### `#[serde(bound = "T: MyTrait")]` {#bound}
65
66
Where-clause for the `Serialize` and `Deserialize` impls. This replaces any
@@ -122,3 +125,5 @@
122
125
Specify a custom type expectation text for deserialization error messages.
123
126
This is used by the generated `expecting` method for the container `Visitor`,
124
127
and as a fallthrough error message for untagged enums.
128
129
+[serde-untagged]: https://docs.rs/serde-untagged
0 commit comments