pub struct RawTrip {
pub id: String,
pub service_id: String,
pub route_id: String,
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,
}
Expand description
A Trip where the relationships with other objects have not been checked
Fields§
§id: String
Unique technical (not for the traveller) identifier for the Trip
service_id: String
References the Calendar on which this trip runs
route_id: String
References along which Route this trip runs
shape_id: Option<String>
Shape of the trip
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
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawTrip
impl<'de> Deserialize<'de> for RawTrip
Source§fn 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>,
Source§impl Type for RawTrip
impl Type for RawTrip
Source§fn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
Auto Trait Implementations§
impl Freeze for RawTrip
impl RefUnwindSafe for RawTrip
impl Send for RawTrip
impl Sync for RawTrip
impl Unpin for RawTrip
impl UnwindSafe for RawTrip
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.