Struct google_api_proto::google::maps::routing::v2::RouteModifiers
source · pub struct RouteModifiers {
pub avoid_tolls: bool,
pub avoid_highways: bool,
pub avoid_ferries: bool,
pub avoid_indoor: bool,
pub vehicle_info: Option<VehicleInfo>,
pub toll_passes: Vec<i32>,
}
Expand description
Encapsulates a set of optional conditions to satisfy when calculating the routes.
Fields§
§avoid_tolls: bool
When set to true, avoids toll roads where reasonable, giving preference to
routes not containing toll roads. Applies only to the DRIVE
and
TWO_WHEELER
[RouteTravelMode
][google.maps.routing.v2.RouteTravelMode].
avoid_highways: bool
When set to true, avoids highways where reasonable, giving preference to
routes not containing highways. Applies only to the DRIVE
and
TWO_WHEELER
[RouteTravelMode
][google.maps.routing.v2.RouteTravelMode].
avoid_ferries: bool
When set to true, avoids ferries where reasonable, giving preference to
routes not containing ferries. Applies only to the DRIVE
andTWO_WHEELER
[RouteTravelMode
][google.maps.routing.v2.RouteTravelMode].
avoid_indoor: bool
When set to true, avoids navigating indoors where reasonable, giving
preference to routes not containing indoor navigation. Applies only to the
WALK
[RouteTravelMode
][google.maps.routing.v2.RouteTravelMode].
vehicle_info: Option<VehicleInfo>
Specifies the vehicle information.
toll_passes: Vec<i32>
Encapsulates information about toll passes.
If toll passes are provided, the API tries to return the pass price. If
toll passes are not provided, the API treats the toll pass as unknown and
tries to return the cash price.
Applies only to the DRIVE
and TWO_WHEELER
[RouteTravelMode
][google.maps.routing.v2.RouteTravelMode].
Implementations§
Trait Implementations§
source§impl Clone for RouteModifiers
impl Clone for RouteModifiers
source§fn clone(&self) -> RouteModifiers
fn clone(&self) -> RouteModifiers
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RouteModifiers
impl Debug for RouteModifiers
source§impl Default for RouteModifiers
impl Default for RouteModifiers
source§impl Message for RouteModifiers
impl Message for RouteModifiers
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RouteModifiers
impl PartialEq for RouteModifiers
source§fn eq(&self, other: &RouteModifiers) -> bool
fn eq(&self, other: &RouteModifiers) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RouteModifiers
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request