pub struct Route {
    pub id: String,
    pub short_name: String,
    pub long_name: String,
    pub desc: Option<String>,
    pub route_type: RouteType,
    pub url: Option<String>,
    pub agency_id: Option<String>,
    pub order: Option<u32>,
    pub color: RGB8,
    pub text_color: RGB8,
    pub continuous_pickup: ContinuousPickupDropOff,
    pub continuous_drop_off: ContinuousPickupDropOff,
}
Expand description

A route is a commercial line (there can be various stop sequences for a same line). See https://gtfs.org/reference/static/#routestxt

Fields

id: String

Unique technical (not for the traveller) identifier for the route

short_name: String

Short name of a route. This will often be a short, abstract identifier like “32”, “100X”, or “Green” that riders use to identify a route, but which doesn’t give any indication of what places the route serves

long_name: String

Full name of a route. This name is generally more descriptive than the Route::short_name] and often includes the route’s destination or stop

desc: Option<String>

Description of a route that provides useful, quality information

route_type: RouteType

Indicates the type of transportation used on a route

url: Option<String>

URL of a web page about the particular route

agency_id: Option<String>

Agency for the specified route

order: Option<u32>

Orders the routes in a way which is ideal for presentation to customers. Routes with smaller route_sort_order values should be displayed first.

color: RGB8

Route color designation that matches public facing material

text_color: RGB8

Legible color to use for text drawn against a background of [Route::route_color]

continuous_pickup: ContinuousPickupDropOff

Indicates whether a rider can board the transit vehicle anywhere along the vehicle’s travel path

continuous_drop_off: ContinuousPickupDropOff

Indicates whether a rider can alight from the transit vehicle at any point along the vehicle’s travel path

Trait Implementations

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

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