Skip to content

Commit

Permalink
Doc: the last FeedEntity received with the same id is the one that ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Etienne Bougue committed Jan 23, 2023
1 parent 5aa6237 commit 6f4b425
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions kirin_proto_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@
// https://groups.google.com/d/forum/navitia
// www.navitia.io

pub struct FeedMessage {
entity: Vec<FeedEntity>,
}

pub struct FeedEntity {
// Id of the disruption to be added/replaced
// For a same entity id, the last one emitted is always the most up-to-date
// (to sort and/or shortcut multiple FeedMessages to process).
id: String,

// Disruption on a dated-VehicleJourney
trip_update: Option<TripUpdate>,
}

pub struct TripUpdate {
trip: TripDescriptor,
Expand Down

0 comments on commit 6f4b425

Please sign in to comment.