pub fn parse_str<T>(s: &str) -> Result<T, TypeShiftError>where
T: TypeShift,Expand description
Core trait and runtime helpers.
Parse JSON text into T and run validator::Validate.
Returns:
TypeShiftError::Jsonwhen JSON decoding failsTypeShiftError::Validationwhen validation fails