pub struct JsonRows {
pub rows: Vec<BTreeMap<String, Value>>,
/* private fields */
}Expand description
Parsed JSON rows ready for crate::GraphDb::ingest, plus bookkeeping so
per-row shape errors keep their original JSON-array indices.
Fields§
§rows: Vec<BTreeMap<String, Value>>Rows that passed shape checks, in original order.
Implementations§
Source§impl JsonRows
impl JsonRows
Sourcepub fn into_report(self, report: IngestReport) -> IngestReport
pub fn into_report(self, report: IngestReport) -> IngestReport
Remap ingest row-error indices onto the original JSON array and append
the shape errors collected by json_to_rows.
Auto Trait Implementations§
impl Freeze for JsonRows
impl RefUnwindSafe for JsonRows
impl Send for JsonRows
impl Sync for JsonRows
impl Unpin for JsonRows
impl UnsafeUnpin for JsonRows
impl UnwindSafe for JsonRows
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more