Skip to main content

import

Function import 

Source
pub fn import(
    doc: &CxfDocument,
    new_id: impl FnMut() -> String,
    now: &str,
) -> Vec<Value>
Expand description

Parses and converts a whole document. new_id/now are injected the way every other importer in this project injects them — determinism for tests, and one clock rather than each entry stamping its own.