pub struct TrafficOptions {
pub radius: Option<f64>,
pub language: Option<String>,
pub include_incidents: Option<bool>,
pub provider_extra: Option<Value>,
}Expand description
Options for traffic data retrieval.
Fields§
§radius: Option<f64>Search radius in meters from the location
language: Option<String>Preferred response language (BCP 47 language tag)
include_incidents: Option<bool>Whether to include traffic incidents in the response
provider_extra: Option<Value>Provider-specific options (HERE: min_jam_factor, functional_classes; TomTom: thickness)
Trait Implementations§
Source§impl Clone for TrafficOptions
impl Clone for TrafficOptions
Source§fn clone(&self) -> TrafficOptions
fn clone(&self) -> TrafficOptions
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 TrafficOptions
impl Debug for TrafficOptions
Source§impl Default for TrafficOptions
impl Default for TrafficOptions
Source§fn default() -> TrafficOptions
fn default() -> TrafficOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrafficOptions
impl<'de> Deserialize<'de> for TrafficOptions
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 TrafficOptions
impl RefUnwindSafe for TrafficOptions
impl Send for TrafficOptions
impl Sync for TrafficOptions
impl Unpin for TrafficOptions
impl UnsafeUnpin for TrafficOptions
impl UnwindSafe for TrafficOptions
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