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 Message for Stop
impl Message for Stop
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
.