pub struct Stop {Show 14 fields
pub stop_id: Option<String>,
pub stop_code: Option<TranslatedString>,
pub stop_name: Option<TranslatedString>,
pub tts_stop_name: Option<TranslatedString>,
pub stop_desc: Option<TranslatedString>,
pub stop_lat: Option<f32>,
pub stop_lon: Option<f32>,
pub zone_id: Option<String>,
pub stop_url: Option<TranslatedString>,
pub parent_station: Option<String>,
pub stop_timezone: Option<String>,
pub wheelchair_boarding: Option<i32>,
pub level_id: Option<String>,
pub platform_code: Option<TranslatedString>,
}
Expand description
Describes a stop which is served by trips. All fields are as described in the GTFS-Static specification. NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future.
Fields§
§stop_id: Option<String>
§stop_code: Option<TranslatedString>
§stop_name: Option<TranslatedString>
§tts_stop_name: Option<TranslatedString>
§stop_desc: Option<TranslatedString>
§stop_lat: Option<f32>
§stop_lon: Option<f32>
§zone_id: Option<String>
§stop_url: Option<TranslatedString>
§parent_station: Option<String>
§stop_timezone: Option<String>
§wheelchair_boarding: Option<i32>
§level_id: Option<String>
§platform_code: Option<TranslatedString>
Implementations§
Source§impl Stop
impl Stop
Sourcepub fn stop_id(&self) -> &str
pub fn stop_id(&self) -> &str
Returns the value of stop_id
, or the default value if stop_id
is unset.
Sourcepub fn stop_lat(&self) -> f32
pub fn stop_lat(&self) -> f32
Returns the value of stop_lat
, or the default value if stop_lat
is unset.
Sourcepub fn stop_lon(&self) -> f32
pub fn stop_lon(&self) -> f32
Returns the value of stop_lon
, or the default value if stop_lon
is unset.
Sourcepub fn zone_id(&self) -> &str
pub fn zone_id(&self) -> &str
Returns the value of zone_id
, or the default value if zone_id
is unset.
Sourcepub fn parent_station(&self) -> &str
pub fn parent_station(&self) -> &str
Returns the value of parent_station
, or the default value if parent_station
is unset.
Sourcepub fn stop_timezone(&self) -> &str
pub fn stop_timezone(&self) -> &str
Returns the value of stop_timezone
, or the default value if stop_timezone
is unset.
Sourcepub fn wheelchair_boarding(&self) -> WheelchairBoarding
pub fn wheelchair_boarding(&self) -> WheelchairBoarding
Returns the enum value of wheelchair_boarding
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_wheelchair_boarding(&mut self, value: WheelchairBoarding)
pub fn set_wheelchair_boarding(&mut self, value: WheelchairBoarding)
Sets wheelchair_boarding
to the provided enum value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stop
impl<'de> Deserialize<'de> for Stop
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 Message for Stop
impl Message for Stop
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
.