Skip to main content

from_ndjson

Function from_ndjson 

Source
pub fn from_ndjson(input: &str) -> Result<ChangeSet, ChangeSetError>
Expand description

Decode NDJSON-delta text into a ChangeSet. Line 1 must parse as the envelope; every subsequent non-empty line must parse as one Op, in stage order. Rejects an envelope whose schema_version this crate does not recognize, and rejects any line carrying an unknown field (fail-loud, matching the deny_unknown_fields posture the rest of the codebase uses for configuration surfaces).