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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Identifier of the object
Serialize this value into the given Serde serializer. Read more
What is the type of the object

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more