Finished implementing refresh in a separate thread.
This commit is contained in:
+8
-9
@@ -14,26 +14,25 @@ pub struct Preferences {
|
||||
#[derive(Debug)]
|
||||
pub struct Gtfs {
|
||||
/// All agencies. They can not be read by `agency_id`, as it is not a required field
|
||||
pub agencies: Vec<Agency>,
|
||||
pub(crate) agencies: Vec<Agency>,
|
||||
/// All Calendar by `service_id`
|
||||
pub calendar: HashMap<String, Calendar>,
|
||||
pub(crate) calendar: HashMap<String, Calendar>,
|
||||
/// All calendar dates grouped by service_id
|
||||
pub calendar_dates: HashMap<String, Vec<CalendarDate>>,
|
||||
pub(crate) calendar_dates: HashMap<String, Vec<CalendarDate>>,
|
||||
/// All routes by `route_id`
|
||||
pub routes: HashMap<String, Route>,
|
||||
pub(crate) routes: HashMap<String, Route>,
|
||||
/// All stop by `stop_id`.
|
||||
pub stops: HashMap<String, Stop>,
|
||||
pub(crate) stops: HashMap<String, Stop>,
|
||||
/// All trips by trip_id
|
||||
pub trips: HashMap<String, RawTrip>,
|
||||
pub(crate) trips: HashMap<String, RawTrip>,
|
||||
/// Stop times for the chosen stops and the chosen routes
|
||||
pub stop_times: HashMap<(String, u32), RawStopTime>,
|
||||
pub(crate) stop_times: HashMap<(String, u32), RawStopTime>,
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
|
||||
pub struct Arrival<'a> {
|
||||
pub departure_time: NaiveTime,
|
||||
pub route: &'a Route,
|
||||
pub stop: &'a Stop,
|
||||
pub departure_time: NaiveTime,
|
||||
}
|
||||
Reference in New Issue
Block a user