Struct gtfs_structures::Route
source · [−]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
sourceimpl<'de> Deserialize<'de> for Route
impl<'de> Deserialize<'de> for Route
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 Route
impl Type for Route
sourcefn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
What is the type of the object
Auto Trait Implementations
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
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> 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