pub struct GTFSRealtimeStopTimeUpdate {
pub stop_sequence: Option<u32>,
pub arrival: Option<GTFSRealtimeStopTimeEvent>,
pub departure: Option<GTFSRealtimeStopTimeEvent>,
pub stop_id: Option<String>,
pub schedule_relationship: GTFSRealtimeScheduleRelationshipUpdate,
pub stop_time_properties: Option<GTFSRealtimeStopTimeProperties>,
pub departure_occupancy_status: Option<GTFSRealtimeOccupancyStatus>,
}Expand description
Realtime update for arrival and/or departure events for a given stop on a trip. Updates can be supplied for both past and future events. The producer is allowed, although not required, to drop past events.
The update is linked to a specific stop either through stop_sequence or stop_id, so one of the fields below must necessarily be set. See the documentation in TripDescriptor for more information.
Fields§
§stop_sequence: Option<u32>Must be the same as in stop_times.txt in the corresponding GTFS feed.
arrival: Option<GTFSRealtimeStopTimeEvent>Realtime updates for arrival events.
departure: Option<GTFSRealtimeStopTimeEvent>Realtime updates for departure events.
stop_id: Option<String>Must be the same as in stops.txt in the corresponding GTFS feed.
schedule_relationship: GTFSRealtimeScheduleRelationshipUpdateThe relation between the StopTimeEvents and the static schedule.
stop_time_properties: Option<GTFSRealtimeStopTimeProperties>Realtime updates for certain properties defined within GTFS stop_times.txt NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
departure_occupancy_status: Option<GTFSRealtimeOccupancyStatus>Expected occupancy after departure from the given stop. Should be provided only for future stops. In order to provide departure_occupancy_status without either arrival or departure StopTimeEvents, ScheduleRelationship should be set to NO_DATA.
Trait Implementations§
Source§impl Clone for GTFSRealtimeStopTimeUpdate
impl Clone for GTFSRealtimeStopTimeUpdate
Source§fn clone(&self) -> GTFSRealtimeStopTimeUpdate
fn clone(&self) -> GTFSRealtimeStopTimeUpdate
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRealtimeStopTimeUpdate
impl Debug for GTFSRealtimeStopTimeUpdate
Source§impl Default for GTFSRealtimeStopTimeUpdate
impl Default for GTFSRealtimeStopTimeUpdate
Source§fn default() -> GTFSRealtimeStopTimeUpdate
fn default() -> GTFSRealtimeStopTimeUpdate
Source§impl ProtoRead for GTFSRealtimeStopTimeUpdate
Read in the contents of the GTFSRealtimeStopTimeUpdate
impl ProtoRead for GTFSRealtimeStopTimeUpdate
Read in the contents of the GTFSRealtimeStopTimeUpdate
impl StructuralPartialEq for GTFSRealtimeStopTimeUpdate
Auto Trait Implementations§
impl Freeze for GTFSRealtimeStopTimeUpdate
impl RefUnwindSafe for GTFSRealtimeStopTimeUpdate
impl Send for GTFSRealtimeStopTimeUpdate
impl Sync for GTFSRealtimeStopTimeUpdate
impl Unpin for GTFSRealtimeStopTimeUpdate
impl UnwindSafe for GTFSRealtimeStopTimeUpdate
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().