Skip to main content

extract_count

Function extract_count 

Source
pub fn extract_count(
    records: &[Value],
    field: Option<&str>,
) -> Result<u64, String>
Expand description

Extract the authoritative count from a probe’s returned records. Uses the named field when given, else the first numeric field of the first record. Pure.