mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-19 23:51:04 +00:00
s/disallow_unknown/deny_unknown_fields/
This commit is contained in:
@@ -600,7 +600,7 @@ Structure Annotations:
|
||||
|
||||
| Annotation | Function |
|
||||
| ---------- | -------- |
|
||||
| `#[serde(disallow_unknown)` | Always error during serialization when encountering unknown fields. When absent, unknown fields are ignored for self-describing formats like JSON. |
|
||||
| `#[serde(deny_unknown_fields)` | Always error during serialization when encountering unknown fields. When absent, unknown fields are ignored for self-describing formats like JSON. |
|
||||
|
||||
|
||||
Serialization Formats Using Serde
|
||||
|
||||
Reference in New Issue
Block a user