Struct traffic_signal_data::TrafficSignal
source · [−]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
sourceimpl Clone for TrafficSignal
impl Clone for TrafficSignal
sourcefn clone(&self) -> TrafficSignal
fn clone(&self) -> TrafficSignal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TrafficSignal
impl Debug for TrafficSignal
sourceimpl<'de> Deserialize<'de> for TrafficSignal
impl<'de> Deserialize<'de> for TrafficSignal
sourcefn 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
sourceimpl PartialEq<TrafficSignal> for TrafficSignal
impl PartialEq<TrafficSignal> for TrafficSignal
sourcefn eq(&self, other: &TrafficSignal) -> bool
fn eq(&self, other: &TrafficSignal) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TrafficSignal) -> bool
fn ne(&self, other: &TrafficSignal) -> bool
This method tests for !=
.
sourceimpl Serialize for TrafficSignal
impl Serialize for TrafficSignal
impl StructuralPartialEq for TrafficSignal
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more