We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b33520f + 12bb7d4 commit fe8821aCopy full SHA for fe8821a
_src/container-attrs.md
@@ -114,3 +114,9 @@
114
Specify a path to the `serde` crate instance to use when referring to Serde
115
APIs from generated code. This is normally only applicable when invoking
116
re-exported Serde derives from a public macro in a different crate.
117
+
118
+- ##### `#[serde(expecting = "...")]` {#expecting}
119
120
+ Specify a custom type expectation text for deserialization error messages.
121
+ This is used by the generated `expecting` method for the container `Visitor`,
122
+ and as a fallthrough error message for untagged enums.
0 commit comments