Struct map_model::objects::transit::TransitRoute [−][src]
pub struct TransitRoute {
pub id: TransitRouteID,
pub long_name: String,
pub short_name: String,
pub gtfs_id: String,
pub stops: Vec<TransitStopID>,
pub start: LaneID,
pub end_border: Option<LaneID>,
pub route_type: PathConstraints,
pub spawn_times: Vec<Time>,
pub orig_spawn_times: Vec<Time>,
}
Fields
id: TransitRouteID
long_name: String
short_name: String
gtfs_id: String
stops: Vec<TransitStopID>
start: LaneID
A transit vehicle spawns at the beginning of this lane. This lane may be at a border or the first stop. For the non-border case, the lane must be long enough for the vehicle to spawn.
end_border: Option<LaneID>
A transit vehicle either vanishes at its last stop or exits the map through this border.
route_type: PathConstraints
spawn_times: Vec<Time>
Non-empty, times in order for one day when a vehicle should begin at start.
orig_spawn_times: Vec<Time>
Explicitly store whatever the original was, since this can’t be reconstructed without side input.
Implementations
pub fn all_path_requests(&self, map: &Map) -> Vec<PathRequest>ⓘ
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TransitRoute
impl Send for TransitRoute
impl Sync for TransitRoute
impl Unpin for TransitRoute
impl UnwindSafe for TransitRoute
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self