Skip to main content

extract_into

Function extract_into 

Source
pub fn extract_into<T: DeserializeOwned>(text: &str) -> Result<T>
Expand description

Parse a model response straight into a typed value.

Tries every candidate rather than only the last one found. A review cut off before its outer object closed used to yield the last nested finding, which parsed as JSON perfectly well and then failed to be a review, and the error blamed the shape rather than the truncation.