Function serde_wasm_bindgen::preserve::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>, T: JsCast>(
de: D
) -> Result<T, D::Error>
Expand description
Deserialize any JsCast
value.
When used with the Derializer
in serde_wasm_bindgen
, this serializes the value by
passing it through as a JsValue
and casting it.
This function is compatible with the serde(deserialize_with)
derive annotation.