First set of commits for realtime support

This commit is contained in:
2026-06-06 19:02:02 +01:00
parent cba2b17f57
commit 40f8c46d80
3 changed files with 43 additions and 2 deletions
+4 -1
View File
@@ -74,7 +74,10 @@ impl Preferences {
// The main GTFS struct. This is similar to (but not exactly) gtfs-structures::Gtfs because we don't need everything
#[derive(Debug)]
pub struct Gtfs {
pub struct Gtfs<'a> {
/// A copy of the preferences struct
pub(crate) preferences: &'a Preferences,
/// All agencies. They can not be read by `agency_id`, as it is not a required field
pub(crate) agencies: Vec<Agency>,
/// All Calendar by `service_id`