Skip to main content

append_jsonl

Function append_jsonl 

Source
pub fn append_jsonl<T: Serialize>(path: &Path, value: &T) -> Result<(), Error>
Expand description

Appends value as one JSON line and syncs the file. A torn final line is ended first, so the new record never joins it.

ยงErrors

Returns an I/O or serialization error.