pub struct GTFSTrip {
pub route_id: String,
pub service_id: String,
pub trip_id: String,
pub trip_headsign: Option<String>,
pub trip_short_name: Option<String>,
pub direction_id: Option<i8>,
pub block_id: Option<String>,
pub shape_id: Option<String>,
pub wheelchair_accessible: Option<i8>,
pub bikes_allowed: Option<i8>,
}Expand description
Fields§
§route_id: StringRequired
Identifies which route this trip belongs to (routes.route_id).
service_id: StringRequired
Identifies a set of dates when service is available (calendar.service_id or calendar_dates.service_id).
trip_id: StringRequired
Unique identifier for a trip (trip_id).
trip_headsign: Option<String>Optional Text that appears on signage identifying the trip’s destination to riders. This field is recommended for all services with headsign text displayed on the vehicle which may be used to distinguish amongst trips in a route.
If the headsign changes during a trip, values for trip_headsign may be overridden by defining values in stop_times.stop_headsign for specific stop_times along the trip.
trip_short_name: Option<String>Optional Public-facing text used to identify the trip (e.g., train numbers).
direction_id: Option<i8>Optional Updated to use an enum for direction. 0 = Outbound, 1 = Inbound.
block_id: Option<String>Optional Identifies the block this trip belongs to. Sequential trips with the same block_id typically use the same vehicle.
shape_id: Option<String>Conditionally Required
References a geospatial shape describing the vehicle’s travel path (shapes.shape_id).
Required if the trip uses continuous pickup or drop-off rules; otherwise optional.
wheelchair_accessible: Option<i8>Optional Updated to use an enum for wheelchair accessibility. 0 = NoInfo, 1 = Accessible, 2 = NotAccessible.
bikes_allowed: Option<i8>Optional Updated to use an enum for bikes allowed. 0 = NoInfo, 1 = Allowed, 2 = NotAllowed.
Implementations§
Source§impl GTFSTrip
impl GTFSTrip
Sourcepub fn direction_id(&self) -> Option<GTFSDirectionId>
pub fn direction_id(&self) -> Option<GTFSDirectionId>
Get the direction_id
Sourcepub fn wheelchair_accessible(&self) -> Option<GTFSWheelchairAccessibility>
pub fn wheelchair_accessible(&self) -> Option<GTFSWheelchairAccessibility>
Get the wheelchair_accessible
Sourcepub fn bikes_allowed(&self) -> Option<GTFSBikesAllowed>
pub fn bikes_allowed(&self) -> Option<GTFSBikesAllowed>
Get the bikes_allowed
Trait Implementations§
Source§impl From<&Map<String, ValueType>> for GTFSTrip
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSTrip
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSTrip
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSTrip
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSTrip> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSTrip> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§impl From<ValueType> for GTFSTrip
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSTrip
If this struct is nested into another struct, pull out the MValue and let
From
impl MValueCompatible for GTFSTrip
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSTrip
Auto Trait Implementations§
impl Freeze for GTFSTrip
impl RefUnwindSafe for GTFSTrip
impl Send for GTFSTrip
impl Sync for GTFSTrip
impl Unpin for GTFSTrip
impl UnwindSafe for GTFSTrip
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().