Skip to main content

to_jsonl

Function to_jsonl 

Source
pub fn to_jsonl(records: &[ModelChangeRecord]) -> Result<String>
Expand description

Serialize records as JSONL (one ModelChangeRecord per line) — the same shape crate::usage_log::to_jsonl and every other append-log in this crate uses. Never fails on an empty slice (produces an empty string).