Struct google_api_proto::google::maps::routing::v2::RouteTravelAdvisory
source · pub struct RouteTravelAdvisory {
pub toll_info: Option<TollInfo>,
pub speed_reading_intervals: Vec<SpeedReadingInterval>,
pub fuel_consumption_microliters: i64,
pub route_restrictions_partially_ignored: bool,
pub transit_fare: Option<Money>,
}
Expand description
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions.
Fields§
§toll_info: Option<TollInfo>
Contains information about tolls on the route. This field is only populated
if tolls are expected on the route. If this field is set, but the
estimatedPrice
subfield is not populated, then the route contains tolls,
but the estimated price is unknown. If this field is not set, then there
are no tolls expected on the route.
speed_reading_intervals: Vec<SpeedReadingInterval>
Speed reading intervals detailing traffic density. Applicable in case of
TRAFFIC_AWARE
and TRAFFIC_AWARE_OPTIMAL
routing preferences.
The intervals cover the entire polyline of the route without overlap.
The start point of a specified interval is the same as the end point of the
preceding interval.
Example:
polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).
fuel_consumption_microliters: i64
The predicted fuel consumption in microliters.
route_restrictions_partially_ignored: bool
Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.
transit_fare: Option<Money>
If present, contains the total fare or ticket costs on this route
This property is only returned for TRANSIT
requests and only
for routes where fare information is available for all transit steps.
Trait Implementations§
source§impl Clone for RouteTravelAdvisory
impl Clone for RouteTravelAdvisory
source§fn clone(&self) -> RouteTravelAdvisory
fn clone(&self) -> RouteTravelAdvisory
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RouteTravelAdvisory
impl Debug for RouteTravelAdvisory
source§impl Default for RouteTravelAdvisory
impl Default for RouteTravelAdvisory
source§impl Message for RouteTravelAdvisory
impl Message for RouteTravelAdvisory
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 RouteTravelAdvisory
impl PartialEq for RouteTravelAdvisory
source§fn eq(&self, other: &RouteTravelAdvisory) -> bool
fn eq(&self, other: &RouteTravelAdvisory) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RouteTravelAdvisory
Auto Trait Implementations§
impl Freeze for RouteTravelAdvisory
impl RefUnwindSafe for RouteTravelAdvisory
impl Send for RouteTravelAdvisory
impl Sync for RouteTravelAdvisory
impl Unpin for RouteTravelAdvisory
impl UnwindSafe for RouteTravelAdvisory
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