From bff2301ac3287fb0bb23c7781f19b60d66c92543 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 19 Apr 2016 12:35:16 -0500 Subject: [PATCH] Document that skip_deserializing uses the `default=...` attribute if present --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d2c63b8..83667c1c 100644 --- a/README.md +++ b/README.md @@ -714,7 +714,7 @@ Field Annotations: | `#[serde(default)]` | If the value is not specified, use the `Default::default()` | | `#[serde(default="$path")]` | Call the path to a function `fn() -> T` to build the value | | `#[serde(skip_serializing)]` | Do not serialize this value | -| `#[serde(skip_deserializing)]` | Always use `Default::default()` instead of deserializing this value | +| `#[serde(skip_deserializing)]` | Always use `Default::default()` or `#[serde(default="$path")]` instead of deserializing this value | | `#[serde(skip_serializing_if="$path")]` | Do not serialize this value if this function `fn(&T) -> bool` returns `true` | | `#[serde(serialize_with="$path")]` | Call a function `fn(&T, &mut S) -> Result<(), S::Error> where S: Serializer` to serialize this value | | `#[serde(deserialize_with="$path")]` | Call a function `fn(&mut D) -> Result where D: Deserializer` to deserialize this value |