Struct gtfs_structures::Trip
source · [−]pub struct Trip {
pub id: String,
pub service_id: String,
pub route_id: String,
pub stop_times: Vec<StopTime>,
pub shape_id: Option<String>,
pub trip_headsign: Option<String>,
pub trip_short_name: Option<String>,
pub direction_id: Option<DirectionType>,
pub block_id: Option<String>,
pub wheelchair_accessible: Availability,
pub bikes_allowed: BikesAllowedType,
pub frequencies: Vec<Frequency>,
}
Expand description
A Trip is a vehicle that follows a sequence of StopTime on certain days. See https://gtfs.org/reference/static/#tripstxt
Fields
id: String
Unique technical identifier (not for the traveller) for the Trip
service_id: String
References the Calendar on which this trip runs
route_id: String
References along which Route this trip runs
stop_times: Vec<StopTime>
All the StopTime that define the trip
shape_id: Option<String>
Text that appears on signage identifying the trip’s destination to riders
trip_headsign: Option<String>
Text that appears on signage identifying the trip’s destination to riders
trip_short_name: Option<String>
Public facing text used to identify the trip to riders, for instance, to identify train numbers for commuter rail trips
direction_id: Option<DirectionType>
Indicates the direction of travel for a trip. This field is not used in routing; it provides a way to separate trips by direction when publishing time tables
block_id: Option<String>
Identifies the block to which the trip belongs. A block consists of a single trip or many sequential trips made using the same vehicle, defined by shared service days and block_id. A block_id can have trips with different service days, making distinct blocks
wheelchair_accessible: Availability
Indicates wheelchair accessibility
bikes_allowed: BikesAllowedType
Indicates whether bikes are allowed
frequencies: Vec<Frequency>
During which periods the trip runs by frequency and not by fixed timetable
Trait Implementations
sourceimpl Type for Trip
impl Type for Trip
sourcefn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
What is the type of the object
Auto Trait Implementations
impl RefUnwindSafe for Trip
impl Send for Trip
impl Sync for Trip
impl Unpin for Trip
impl UnwindSafe for Trip
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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