pub struct CustomLayerInfo {
pub area_info: Vec<AreaInfo>,
pub total_distance_in_areas_meters: f32,
pub total_duration_in_areas: Option<Duration>,
}
Expand description
Deprecated: This field will stop being populated soon. Encapsulates statistics about the time spent and distance travelled in a custom area.
Fields§
§area_info: Vec<AreaInfo>
Encapsulates information about areas in the custom layer on the Route. This field is only populated if a route travels through areas in the custom layer.
total_distance_in_areas_meters: f32
Total unique distance traveled across all activated areas in the provided
dataset (in meters). For example, if a route travels through the
intersection of area A and area B, the distance in the intersection region
is only added once to the total_distance_in_areas_meters
.
total_duration_in_areas: Option<Duration>
Total time spent across all activated areas in the provided dataset.
For example, if a route travels through the intersection of area A and
area B, the time spent in the intersection region is only added once to the
total_duration_in_areas
.
Trait Implementations§
Source§impl Clone for CustomLayerInfo
impl Clone for CustomLayerInfo
Source§fn clone(&self) -> CustomLayerInfo
fn clone(&self) -> CustomLayerInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CustomLayerInfo
impl Debug for CustomLayerInfo
Source§impl Default for CustomLayerInfo
impl Default for CustomLayerInfo
Source§impl Message for CustomLayerInfo
impl Message for CustomLayerInfo
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 CustomLayerInfo
impl PartialEq for CustomLayerInfo
impl StructuralPartialEq for CustomLayerInfo
Auto Trait Implementations§
impl Freeze for CustomLayerInfo
impl RefUnwindSafe for CustomLayerInfo
impl Send for CustomLayerInfo
impl Sync for CustomLayerInfo
impl Unpin for CustomLayerInfo
impl UnwindSafe for CustomLayerInfo
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