Second set of commits for realtime support
This commit is contained in:
@@ -2,6 +2,7 @@ use std::collections::{HashMap, HashSet};
|
||||
use gtfs_structures::{Agency, Calendar, CalendarDate, RawStopTime, RawTrip, Route, Stop};
|
||||
use log::error;
|
||||
use serde::{Serialize, Deserialize};
|
||||
use serde_json::value;
|
||||
use zip::result::ZipError;
|
||||
|
||||
|
||||
@@ -28,6 +29,12 @@ impl From<ZipError> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<serde_json::Error> for Error {
|
||||
fn from(value: serde_json::Error) -> Self {
|
||||
return Error { _message: value.to_string() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// This is to store the preferences for the GTFS(-R) side of the code.
|
||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user