pub struct GTFSRealtimeModification {
pub start_stop_selector: Option<GTFSRealtimeStopSelector>,
pub end_stop_selector: Option<GTFSRealtimeStopSelector>,
pub propagated_modification_delay: i32,
pub replacement_stops: Vec<GTFSRealtimeReplacementStop>,
pub service_alert_id: Option<String>,
pub last_modified_time: Option<Date>,
}Expand description
A Modification message replaces a span of n stop times from each affected trip starting at
start_stop_selector.
Fields§
§start_stop_selector: Option<GTFSRealtimeStopSelector>The stop selector of the first stop_time of the original trip that is to be affected by this modification.
Used in conjuction with end_stop_selector.
start_stop_selector is required and is used to define the reference stop used with travel_time_to_stop.
end_stop_selector: Option<GTFSRealtimeStopSelector>The stop selector of the last stop of the original trip that is to be affected by this modification.
The selection is inclusive, so if only one stop_time is replaced by that modification, start_stop_selector
and end_stop_selector must be equivalent.
If no stop_time is replaced, end_stop_selector must not be provided. It’s otherwise required.
propagated_modification_delay: i32The number of seconds of delay to add to all departure and arrival times following the end of this modification. If multiple modifications apply to the same trip, the delays accumulate as the trip advances.
replacement_stops: Vec<GTFSRealtimeReplacementStop>A list of replacement stops, replacing those of the original trip. The length of the new stop times may be less, the same, or greater than the number of replaced stop times.
service_alert_id: Option<String>An id value from the FeedEntity message that contains the Alert describing this Modification
for user-facing communication.
last_modified_time: Option<Date>This timestamp identifies the moment when the modification has last been changed. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
Trait Implementations§
Source§impl Clone for GTFSRealtimeModification
impl Clone for GTFSRealtimeModification
Source§fn clone(&self) -> GTFSRealtimeModification
fn clone(&self) -> GTFSRealtimeModification
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRealtimeModification
impl Debug for GTFSRealtimeModification
Source§impl Default for GTFSRealtimeModification
impl Default for GTFSRealtimeModification
Source§fn default() -> GTFSRealtimeModification
fn default() -> GTFSRealtimeModification
Source§impl PartialEq for GTFSRealtimeModification
impl PartialEq for GTFSRealtimeModification
Source§impl ProtoRead for GTFSRealtimeModification
Read in the contents of the GTFSRealtimeModification
impl ProtoRead for GTFSRealtimeModification
Read in the contents of the GTFSRealtimeModification
impl StructuralPartialEq for GTFSRealtimeModification
Auto Trait Implementations§
impl Freeze for GTFSRealtimeModification
impl RefUnwindSafe for GTFSRealtimeModification
impl Send for GTFSRealtimeModification
impl Sync for GTFSRealtimeModification
impl Unpin for GTFSRealtimeModification
impl UnwindSafe for GTFSRealtimeModification
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().