pub enum GetTrafficIncidentsResponse {
Ok(Vec<TrafficIncident>),
UnexpectedStatus(StatusCode, Vec<u8>),
}Expand description
Returns incidents currently happening on the roads, such as Accidents, Vehicle Breakdowns, Road Blocks, Traffic Diversions etc. Update freq: 2 min
Variants§
Ok(Vec<TrafficIncident>)
Successful Traffic Incidents response.
UnexpectedStatus(StatusCode, Vec<u8>)
Trait Implementations§
Source§impl Clone for GetTrafficIncidentsResponse
impl Clone for GetTrafficIncidentsResponse
Source§fn clone(&self) -> GetTrafficIncidentsResponse
fn clone(&self) -> GetTrafficIncidentsResponse
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 GetTrafficIncidentsResponse
impl Debug for GetTrafficIncidentsResponse
impl StructuralPartialEq for GetTrafficIncidentsResponse
Auto Trait Implementations§
impl Freeze for GetTrafficIncidentsResponse
impl RefUnwindSafe for GetTrafficIncidentsResponse
impl Send for GetTrafficIncidentsResponse
impl Sync for GetTrafficIncidentsResponse
impl Unpin for GetTrafficIncidentsResponse
impl UnsafeUnpin for GetTrafficIncidentsResponse
impl UnwindSafe for GetTrafficIncidentsResponse
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