pub struct RouteLegTravelAdvisory {
pub toll_info: Option<TollInfo>,
pub speed_reading_intervals: Vec<SpeedReadingInterval>,
pub custom_layer_info: Option<CustomLayerInfo>,
}
Expand description
Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction etc. on a route leg.
Fields§
§toll_info: Option<TollInfo>
Encapsulates information about tolls on the specific RouteLeg
.
This field is only populated if we expect there are tolls on the
RouteLeg
. If this field is set but the estimated_price
subfield is not
populated, we expect that road contains tolls but we do not know an
estimated price. If this field does not exist, then there is no toll on the
RouteLeg
.
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 RouteLeg
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).
custom_layer_info: Option<CustomLayerInfo>
Deprecated: This field will stop being populated soon. Information related to the custom layer data that the customer specified (e.g. time spent in a customer specified area).
Trait Implementations§
Source§impl Clone for RouteLegTravelAdvisory
impl Clone for RouteLegTravelAdvisory
Source§fn clone(&self) -> RouteLegTravelAdvisory
fn clone(&self) -> RouteLegTravelAdvisory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RouteLegTravelAdvisory
impl Debug for RouteLegTravelAdvisory
Source§impl Default for RouteLegTravelAdvisory
impl Default for RouteLegTravelAdvisory
Source§fn default() -> RouteLegTravelAdvisory
fn default() -> RouteLegTravelAdvisory
Source§impl Message for RouteLegTravelAdvisory
impl Message for RouteLegTravelAdvisory
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 RouteLegTravelAdvisory
impl PartialEq for RouteLegTravelAdvisory
impl StructuralPartialEq for RouteLegTravelAdvisory
Auto Trait Implementations§
impl Freeze for RouteLegTravelAdvisory
impl RefUnwindSafe for RouteLegTravelAdvisory
impl Send for RouteLegTravelAdvisory
impl Sync for RouteLegTravelAdvisory
impl Unpin for RouteLegTravelAdvisory
impl UnwindSafe for RouteLegTravelAdvisory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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