pub fn load_all_as_with_config<T>(
input: &str,
config: &ParserConfig,
) -> Result<Vec<T>>where
T: for<'de> Deserialize<'de> + 'static,Expand description
load_all_as with a custom ParserConfig: its limits, its
scalar-resolution and merge settings, and its policies.
§Errors
Returns an error if the stream exceeds a configured limit, a policy
refuses a document, parsing fails, or a document cannot be
deserialized into T.
§Examples
use noyalib::{load_all_as_with_config, ParserConfig};
let cfg = ParserConfig::strict();
let docs: Vec<i32> = load_all_as_with_config("1\n---\n2\n", &cfg).unwrap();
assert_eq!(docs, vec![1, 2]);