pub fn deserialize_nested<'de, D, T>(deserializer: D) -> Result<T, D::Error>where
D: Deserializer<'de>,
T: DeserializeOwned,Expand description
Custom deserializer for nested XML content.
This deserializer handles elements where the text content is XML-escaped
and needs to be parsed into a structured type. Used with serde’s
deserialize_with attribute.
§Example
ⓘ
#[derive(Deserialize)]
struct Property {
#[serde(deserialize_with = "deserialize_nested")]
last_change: LastChangeEvent,
}