[][src]Struct traffic_signal_data::TrafficSignal

pub struct TrafficSignal {
    pub intersection_osm_node_id: i64,
    pub plans: Vec<Plan>,
}

Fields

intersection_osm_node_id: i64

The ID of the OSM node representing the intersection with the traffic signal. This node should be tagged highway = traffic_signals in OSM.

TODO Describe how consolidated intersections are handled.

plans: Vec<Plan>

The traffic signal uses configuration from one plan at a time. The plans must be listed in order of ascending start_time_seconds, the first plan must begin at 0 (midnight), and the last plan must not start after 24 hours.

Trait Implementations

impl Clone for TrafficSignal[src]

impl Debug for TrafficSignal[src]

impl<'de> Deserialize<'de> for TrafficSignal[src]

impl PartialEq<TrafficSignal> for TrafficSignal[src]

impl Serialize for TrafficSignal[src]

impl StructuralPartialEq for TrafficSignal[src]

Auto Trait Implementations

impl RefUnwindSafe for TrafficSignal

impl Send for TrafficSignal

impl Sync for TrafficSignal

impl Unpin for TrafficSignal

impl UnwindSafe for TrafficSignal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.