pub struct Collision {
pub location: LonLat,
pub time: Duration,
pub severity: Severity,
}
Expand description
A single collision that occurred in the real world.
Fields§
§location: LonLat
A single point describing where the collision occurred.
time: Duration
The local time the collision occurred.
severity: Severity
The severity reported in the original data source.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Collision
impl<'de> Deserialize<'de> for Collision
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 Collision
impl RefUnwindSafe for Collision
impl Send for Collision
impl Sync for Collision
impl Unpin for Collision
impl UnwindSafe for Collision
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