pub fn from_str_static_error<'input: 'facet, 'facet, T: Facet<'facet>>(
input: &'input str,
) -> Result<T, DeserError<'input>>Expand description
Deserialize JSON from a given string, converting any dynamic error into a static one.
This function attempts to deserialize a type T implementing Facet from the input string slice.
If deserialization fails, the error is converted into an owned, static error type to avoid lifetime issues.