Skip to main content

parse_with_config

Function parse_with_config 

Source
pub fn parse_with_config<T>(
    input: &str,
    config: &ParserConfig,
) -> Result<Vec<T>>
where T: DeserializeOwned + Send + 'static,
Expand description

Deserialise every document with a caller-supplied parser policy. Document-count and per-document limits are enforced before and during parallel work. Streams with fewer than four documents stay sequential to avoid Rayon scheduling overhead.

ยงErrors

Returns the first document or budget error in source order.