Struct map_model::edits::perma_traffic_signal::TrafficSignal
source · 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§
source§impl Clone for TrafficSignal
impl Clone for TrafficSignal
source§fn clone(&self) -> TrafficSignal
fn clone(&self) -> TrafficSignal
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TrafficSignal
impl Debug for TrafficSignal
source§impl<'de> Deserialize<'de> for TrafficSignal
impl<'de> Deserialize<'de> for TrafficSignal
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TrafficSignal
impl PartialEq for TrafficSignal
source§fn 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 ==
.source§impl Serialize for TrafficSignal
impl Serialize for TrafficSignal
impl StructuralPartialEq for TrafficSignal
Auto Trait Implementations§
impl Freeze for TrafficSignal
impl RefUnwindSafe for TrafficSignal
impl Send for TrafficSignal
impl Sync for TrafficSignal
impl Unpin for TrafficSignal
impl UnwindSafe for TrafficSignal
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
Mutably borrows from an owned value. Read more