pub fn parse_i64(value: &KalamCellValue) -> i64Expand description
Parse an i64 from a KalamCellValue that might be a Number or a String.
The backend serializes Int64 as strings to preserve precision in JSON. This utility handles both formats for convenience.
ยงExample
use kalam_client::{models::KalamCellValue, parse_i64};
let num_value = KalamCellValue::int(42);
let str_value = KalamCellValue::text("42");
assert_eq!(parse_i64(&num_value), 42);
assert_eq!(parse_i64(&str_value), 42);