serde_derive::de

Function wrap_deserialize_with

source
fn wrap_deserialize_with(
    params: &Parameters,
    value_ty: &TokenStream,
    deserialize_with: &ExprPath,
) -> (TokenStream, TokenStream)
Expand description

This function wraps the expression in #[serde(deserialize_with = "...")] in a trait to prevent it from accessing the internal Deserialize state.