Closed jnioche closed 10 months ago
We currently return the whole RegionData
pub struct RegionData { regionid: i32, dnoregion: Option<String>, shortname: String, postcode: Option<String>, data: Vec<Data>, }
including the GenerationMix which is pretty verbose. The dates are also returned as strings, which takes further processing.
If #3 gets implemented we would also need to merge the outputs from individual calls into a single output.
We now return Vec<(NaiveDateTime, i32) Easier to read, easier to integrate in another process
We currently return the whole RegionData
including the GenerationMix which is pretty verbose. The dates are also returned as strings, which takes further processing.
If #3 gets implemented we would also need to merge the outputs from individual calls into a single output.