pub struct RouteModifiers { /* private fields */ }Expand description
A set of optional conditions to satisfy when calculating the routes. See https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers
Implementations§
Source§impl RouteModifiers
impl RouteModifiers
Sourcepub fn new(
avoid_tolls: Option<bool>,
avoid_highways: Option<bool>,
avoid_ferries: Option<bool>,
avoid_indoor: Option<bool>,
emission_type: Option<EmissionType>,
toll_passes: Option<Vec<String>>,
) -> Self
pub fn new( avoid_tolls: Option<bool>, avoid_highways: Option<bool>, avoid_ferries: Option<bool>, avoid_indoor: Option<bool>, emission_type: Option<EmissionType>, toll_passes: Option<Vec<String>>, ) -> Self
A set of optional conditions to satisfy when calculating the routes. See https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers
Trait Implementations§
Source§impl Clone for RouteModifiers
impl Clone for RouteModifiers
Source§fn clone(&self) -> RouteModifiers
fn clone(&self) -> RouteModifiers
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 RouteModifiers
impl Debug for RouteModifiers
Source§impl<'de> Deserialize<'de> for RouteModifiers
impl<'de> Deserialize<'de> for RouteModifiers
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 RouteModifiers
impl RefUnwindSafe for RouteModifiers
impl Send for RouteModifiers
impl Sync for RouteModifiers
impl Unpin for RouteModifiers
impl UnwindSafe for RouteModifiers
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