pub struct TrafficIncident {
pub identifier: String,
pub incident_type: TrafficIncidentType,
pub severity: TrafficIncidentSeverity,
pub short_description_text: String,
pub start_coordinate: GeographicCoordinate,
pub end_coordinate: Option<GeographicCoordinate>,
}Expand description
One reported disruption inside a queried bounding box.
Fields§
§identifier: StringProvider-stable incident identifier.
incident_type: TrafficIncidentTypeClass of disruption.
severity: TrafficIncidentSeveritySeverity ranking.
short_description_text: StringProvider display text for this incident.
start_coordinate: GeographicCoordinatePosition where the incident starts.
end_coordinate: Option<GeographicCoordinate>Position where the incident ends, if reported.
Trait Implementations§
Source§impl Clone for TrafficIncident
impl Clone for TrafficIncident
Source§fn clone(&self) -> TrafficIncident
fn clone(&self) -> TrafficIncident
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrafficIncident
impl Debug for TrafficIncident
Source§impl<'de> Deserialize<'de> for TrafficIncident
impl<'de> Deserialize<'de> for TrafficIncident
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 TrafficIncident
impl PartialEq for TrafficIncident
Source§impl Serialize for TrafficIncident
impl Serialize for TrafficIncident
impl StructuralPartialEq for TrafficIncident
Auto Trait Implementations§
impl Freeze for TrafficIncident
impl RefUnwindSafe for TrafficIncident
impl Send for TrafficIncident
impl Sync for TrafficIncident
impl Unpin for TrafficIncident
impl UnsafeUnpin for TrafficIncident
impl UnwindSafe for TrafficIncident
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