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§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Identifier of the object
Serialize this value into the given Serde serializer. Read more
What is the type of the object

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more