pub enum TrafficModel {
TrafficModelUnspecified,
BestGuess,
Pessimistic,
Optimistic,
}Expand description
Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the response, which contains the predicted time in traffic based on historical averages. See https://developers.google.com/maps/documentation/routes/reference/rest/v2/TrafficModel
Variants§
Trait Implementations§
Source§impl Clone for TrafficModel
impl Clone for TrafficModel
Source§fn clone(&self) -> TrafficModel
fn clone(&self) -> TrafficModel
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 TrafficModel
impl Debug for TrafficModel
Source§impl<'de> Deserialize<'de> for TrafficModel
impl<'de> Deserialize<'de> for TrafficModel
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 TrafficModel
impl RefUnwindSafe for TrafficModel
impl Send for TrafficModel
impl Sync for TrafficModel
impl Unpin for TrafficModel
impl UnwindSafe for TrafficModel
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