Struct gtfs_rt::ReplacementStop
source · pub struct ReplacementStop {
pub travel_time_to_stop: Option<i32>,
pub stop_id: Option<String>,
}
Expand description
NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
Fields§
§travel_time_to_stop: Option<i32>
The difference in seconds between the arrival time at this stop and the arrival time at the reference stop. The reference stop is the stop prior to start_stop_selector. If the modification begins at the first stop of the trip, then the first stop of the trip is the reference stop. This value MUST be monotonically increasing and may only be a negative number if the first stop of the original trip is the reference stop.
stop_id: Option<String>
The replacement stop ID which will now be visited by the trip. May refer to a new stop added using a GTFS-RT Stop message, or to an existing stop defined in the GTFS-Static feed’s stops.txt. The stop MUST have location_type=0 (routable stops).
Implementations§
Trait Implementations§
source§impl Clone for ReplacementStop
impl Clone for ReplacementStop
source§fn clone(&self) -> ReplacementStop
fn clone(&self) -> ReplacementStop
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReplacementStop
impl Debug for ReplacementStop
source§impl Default for ReplacementStop
impl Default for ReplacementStop
source§impl Message for ReplacementStop
impl Message for ReplacementStop
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.source§impl PartialEq for ReplacementStop
impl PartialEq for ReplacementStop
source§fn eq(&self, other: &ReplacementStop) -> bool
fn eq(&self, other: &ReplacementStop) -> bool
self
and other
values to be equal, and is used
by ==
.