Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(
    text: &str,
    utc_offset_seconds: i64,
) -> Result<Vec<Record>, Error>
Expand description

Parse a whole sacct --parsable2 --noheader export. Calculation.

Blank lines are skipped. Every remaining line is parsed in order, and the first row that cannot be read fails the whole call with an error naming that row and field.

ยงErrors

The first Error any row earns.