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 in the same GTFS-RT feed, or to an existing stop defined in the (CSV) GTFS feed’s stops.txt
.
If it refers to a Shape
entity in the real-time feed, the value of this field should be the one of the stop_id
inside the entity, and not the id
of FeedEntity
. The replacement 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<'de> Deserialize<'de> for ReplacementStop
impl<'de> Deserialize<'de> for ReplacementStop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for ReplacementStop
impl Hash 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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.