pub struct TrafficIncident {
pub id: Option<String>,
pub incident_type: Option<String>,
pub severity: Option<IncidentSeverity>,
pub description: Option<String>,
pub road_name: Option<String>,
pub start_time: Option<String>,
pub end_time: Option<String>,
}Expand description
A traffic incident (accident, construction, road closure, etc.).
Fields§
§id: Option<String>Unique identifier for this incident
incident_type: Option<String>Type of incident (e.g., “accident”, “construction”, “roadClosure”)
severity: Option<IncidentSeverity>Severity level
description: Option<String>Human-readable description
road_name: Option<String>Road name or location description
start_time: Option<String>Start time (ISO 8601 string)
end_time: Option<String>End time (ISO 8601 string)
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
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