pub struct TrafficResponse {
pub flows: Vec<TrafficFlow>,
pub incidents: Vec<TrafficIncident>,
pub raw: Option<Value>,
}Expand description
A unified traffic response from the core trait.
Fields§
§flows: Vec<TrafficFlow>Traffic flow data for the requested area
incidents: Vec<TrafficIncident>Active traffic incidents in the area
raw: Option<Value>Provider-specific raw data for advanced use cases
Trait Implementations§
Source§impl Clone for TrafficResponse
impl Clone for TrafficResponse
Source§fn clone(&self) -> TrafficResponse
fn clone(&self) -> TrafficResponse
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 TrafficResponse
impl Debug for TrafficResponse
Source§impl<'de> Deserialize<'de> for TrafficResponse
impl<'de> Deserialize<'de> for TrafficResponse
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 TrafficResponse
impl RefUnwindSafe for TrafficResponse
impl Send for TrafficResponse
impl Sync for TrafficResponse
impl Unpin for TrafficResponse
impl UnsafeUnpin for TrafficResponse
impl UnwindSafe for TrafficResponse
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