pub fn parse_row(line: &str, utc_offset_seconds: i64) -> Result<Record, Error>Expand description
Parse one sacct --parsable2 --noheader row. Calculation.
The row’s fields are, in order: JobIDRaw, Submit, Start, End, ElapsedRaw, AllocTRES, TimelimitRaw, QOS, Partition, State, User. The
clock readings are civil time with no zone; utc_offset_seconds is the
zone’s offset, so -21_600 for UTC-6, and the record’s stamps are
civil_interpreted_as_utc − utc_offset_seconds.
§Errors
Error::Arity when the row has the wrong number of fields, and
Error::Field naming the row and the field for any value that does not
parse.