fn parse_array(name: &String, vec: &Vec<serde_json::Value>) -> Result<Property, Error> {
    let array_format = ArrayFormat::Default;

    if is_f64_vec(vec) {
        return Ok(Property::DoubleArray(
            name.to_string(),
            ArrayValue::new(transform_numerical_f64_vec(vec)?, array_format),
        ));
    }

    if is_i64_vec(vec) {
        return Ok(Property::IntArray(
            name.to_string(),
            ArrayValue::new(transform_numerical_i64_vec(vec)?, array_format),
        ));
    }

    if is_u64_vec(vec) {
        return Ok(Property::UintArray(
            name.to_string(),
            ArrayValue::new(transform_numerical_u64_vec(vec)?, array_format),
        ));
    }

    bail!("Arrays must be one of i64, u64, or f64. Property name: {:?}", name);
}
/// Parses a JSON array into its numerical Inspect ArrayValue.
Parses a JSON array into its numerical Inspect ArrayValue.
Parses a JSON array into its numerical Inspect ArrayValue .
fn parse_array(name: &String, vec: &Vec<serde_json::Value>) -> Result<Property, Error> {
    let array_format = ArrayFormat::Default;
    if is_f64_vec(vec) {
        return Ok(Property::DoubleArray(
            name.to_string(),
            ArrayValue::new(transform_numerical_f64_vec(vec)?, array_format),
        ));
    }
    if is_i64_vec(vec) {
        return Ok(Property::IntArray(
            name.to_string(),
            ArrayValue::new(transform_numerical_i64_vec(vec)?, array_format),
        ));
    }
    if is_u64_vec(vec) {
        return Ok(Property::UintArray(
            name.to_string(),
            ArrayValue::new(transform_numerical_u64_vec(vec)?, array_format),
        ));
    }
    bail!("Arrays must be one of i64, u64, or f64. Property name: {:?}", name);
}
fn parse_array ( name : & String , vec : & Vec < serde_json :: Value > ) -> Result < Property , Error > { let array_format = ArrayFormat :: Default ; if is_f64_vec ( vec ) { return Ok ( Property :: DoubleArray ( name . to_string ( ) , ArrayValue :: new ( transform_numerical_f64_vec ( vec ) ? , array_format ) , ) ) ; } if is_i64_vec ( vec ) { return Ok ( Property :: IntArray ( name . to_string ( ) , ArrayValue :: new ( transform_numerical_i64_vec ( vec ) ? , array_format ) , ) ) ; } if is_u64_vec ( vec ) { return Ok ( Property :: UintArray ( name . to_string ( ) , ArrayValue :: new ( transform_numerical_u64_vec ( vec ) ? , array_format ) , ) ) ; } bail ! ( " " name ) ; }
Parses a JSON array into its numerical Inspect ArrayValue.
Parses a JSON array into its numerical Inspect ArrayValue .
name
&String
vec
&Vec<serde_json::Value>