pub enum IncidentType {
Accident,
RoadWorks,
VehicleBreakdown,
Weather,
Obstacle,
RoadBlock,
HeavyTraffic,
Misc,
Diversion,
UnattendedVehicle,
Roadwork,
Other(String),
}Expand description
Type of traffic incident.
Variants§
Accident
RoadWorks
VehicleBreakdown
Weather
Obstacle
RoadBlock
HeavyTraffic
Misc
Diversion
UnattendedVehicle
Roadwork
Other(String)
Implementations§
Trait Implementations§
Source§impl AsRef<str> for IncidentType
impl AsRef<str> for IncidentType
Source§impl Clone for IncidentType
impl Clone for IncidentType
Source§fn clone(&self) -> IncidentType
fn clone(&self) -> IncidentType
Returns a duplicate 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 IncidentType
impl Debug for IncidentType
Source§impl<'de> Deserialize<'de> for IncidentType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for IncidentType
Available on crate feature
serde only.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 Display for IncidentType
impl Display for IncidentType
Source§impl PartialEq for IncidentType
impl PartialEq for IncidentType
Source§impl Serialize for IncidentType
Available on crate feature serde only.
impl Serialize for IncidentType
Available on crate feature
serde only.impl Eq for IncidentType
impl StructuralPartialEq for IncidentType
Auto Trait Implementations§
impl Freeze for IncidentType
impl RefUnwindSafe for IncidentType
impl Send for IncidentType
impl Sync for IncidentType
impl Unpin for IncidentType
impl UnsafeUnpin for IncidentType
impl UnwindSafe for IncidentType
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