pub fn serialize_rows<T, R>(data: &QueryData<R>) -> Valuewhere T: for<'r> FromRow<'r, R> + Serialize, R: Row,
Serialize SQL rows to json by mapping them to an intermediate data model structure