Skip to main content

deser_params

Function deser_params 

Source
pub fn deser_params<T: DeserializeOwned>(
    params: Value,
) -> Result<T, RuntimeError>
Expand description

Deserialize a verb’s JSON params into T.

A failure becomes RuntimeError::InvalidInput whose text is bad params: followed by the message serde reports, for example a missing required field or a field rejected by deny_unknown_fields.