Struct gtfs_structures::Stop
source · [−]pub struct Stop {Show 16 fields
pub id: String,
pub code: Option<String>,
pub name: String,
pub description: String,
pub location_type: LocationType,
pub parent_station: Option<String>,
pub zone_id: Option<String>,
pub url: Option<String>,
pub longitude: Option<f64>,
pub latitude: Option<f64>,
pub timezone: Option<String>,
pub wheelchair_boarding: Availability,
pub level_id: Option<String>,
pub platform_code: Option<String>,
pub transfers: Vec<StopTransfer>,
pub pathways: Vec<Pathway>,
}
Expand description
A physical stop, station or area. See https://gtfs.org/reference/static/#stopstxt
Fields
id: String
Unique technical identifier (not for the traveller) of the stop
code: Option<String>
Short text or a number that identifies the location for riders
name: String
Name of the location. Use a name that people will understand in the local and tourist vernacular
description: String
Description of the location that provides useful, quality information
location_type: LocationType
Type of the location
parent_station: Option<String>
Defines hierarchy between the different locations
zone_id: Option<String>
Identifies the fare zone for a stop
url: Option<String>
URL of a web page about the location
longitude: Option<f64>
Longitude of the stop
latitude: Option<f64>
Latitude of the stop
timezone: Option<String>
Timezone of the location
wheelchair_boarding: Availability
Indicates whether wheelchair boardings are possible from the location
level_id: Option<String>
Level of the location. The same level can be used by multiple unlinked stations
platform_code: Option<String>
Platform identifier for a platform stop (a stop belonging to a station)
transfers: Vec<StopTransfer>
Transfers from this Stop
pathways: Vec<Pathway>
Pathways from this stop
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Stop
impl<'de> Deserialize<'de> for Stop
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Type for Stop
impl Type for Stop
sourcefn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
What is the type of the object
Auto Trait Implementations
impl RefUnwindSafe for Stop
impl Send for Stop
impl Sync for Stop
impl Unpin for Stop
impl UnwindSafe for Stop
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more