pub enum ScheduleRelationship {
Scheduled,
Added,
Unscheduled,
Canceled,
}
Expand description
The relation between this trip and the static schedule. If a trip is done in accordance with temporary schedule, not reflected in GTFS, then it shouldn’t be marked as SCHEDULED, but likely as ADDED.
Variants§
Scheduled
Trip that is running in accordance with its GTFS schedule, or is close enough to the scheduled trip to be associated with it.
Added
An extra trip that was added in addition to a running schedule, for example, to replace a broken vehicle or to respond to sudden passenger load.
Unscheduled
A trip that is running with no schedule associated to it, for example, if there is no schedule at all.
Canceled
A trip that existed in the schedule but was removed.
Implementations§
Trait Implementations§
source§impl Clone for ScheduleRelationship
impl Clone for ScheduleRelationship
source§fn clone(&self) -> ScheduleRelationship
fn clone(&self) -> ScheduleRelationship
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScheduleRelationship
impl Debug for ScheduleRelationship
source§impl Default for ScheduleRelationship
impl Default for ScheduleRelationship
source§fn default() -> ScheduleRelationship
fn default() -> ScheduleRelationship
Returns the “default value” for a type. Read more
source§impl From<ScheduleRelationship> for i32
impl From<ScheduleRelationship> for i32
source§fn from(value: ScheduleRelationship) -> i32
fn from(value: ScheduleRelationship) -> i32
Converts to this type from the input type.
source§impl Hash for ScheduleRelationship
impl Hash for ScheduleRelationship
source§impl Ord for ScheduleRelationship
impl Ord for ScheduleRelationship
source§fn cmp(&self, other: &ScheduleRelationship) -> Ordering
fn cmp(&self, other: &ScheduleRelationship) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ScheduleRelationship> for ScheduleRelationship
impl PartialEq<ScheduleRelationship> for ScheduleRelationship
source§fn eq(&self, other: &ScheduleRelationship) -> bool
fn eq(&self, other: &ScheduleRelationship) -> bool
source§impl PartialOrd<ScheduleRelationship> for ScheduleRelationship
impl PartialOrd<ScheduleRelationship> for ScheduleRelationship
source§fn partial_cmp(&self, other: &ScheduleRelationship) -> Option<Ordering>
fn partial_cmp(&self, other: &ScheduleRelationship) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more