Struct google_api_proto::google::maps::routing::v2::route_leg::steps_overview::MultiModalSegment
source · pub struct MultiModalSegment {
pub step_start_index: Option<i32>,
pub step_end_index: Option<i32>,
pub navigation_instruction: Option<NavigationInstruction>,
pub travel_mode: i32,
}
Expand description
Provides summarized information about different multi-modal segments of
the RouteLeg.steps
. A multi-modal segment is defined as one or more
contiguous RouteLegStep
that have the same RouteTravelMode
.
This field is not populated if the RouteLeg
does not contain any
multi-modal segments in the steps.
Fields§
§step_start_index: Option<i32>
The corresponding RouteLegStep
index that is the start of a
multi-modal segment.
step_end_index: Option<i32>
The corresponding RouteLegStep
index that is the end of a
multi-modal segment.
NavigationInstruction for the multi-modal segment.
travel_mode: i32
The travel mode of the multi-modal segment.
Implementations§
source§impl MultiModalSegment
impl MultiModalSegment
sourcepub fn step_start_index(&self) -> i32
pub fn step_start_index(&self) -> i32
Returns the value of step_start_index
, or the default value if step_start_index
is unset.
sourcepub fn step_end_index(&self) -> i32
pub fn step_end_index(&self) -> i32
Returns the value of step_end_index
, or the default value if step_end_index
is unset.
sourcepub fn travel_mode(&self) -> RouteTravelMode
pub fn travel_mode(&self) -> RouteTravelMode
Returns the enum value of travel_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_travel_mode(&mut self, value: RouteTravelMode)
pub fn set_travel_mode(&mut self, value: RouteTravelMode)
Sets travel_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for MultiModalSegment
impl Clone for MultiModalSegment
source§fn clone(&self) -> MultiModalSegment
fn clone(&self) -> MultiModalSegment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MultiModalSegment
impl Debug for MultiModalSegment
source§impl Default for MultiModalSegment
impl Default for MultiModalSegment
source§impl Message for MultiModalSegment
impl Message for MultiModalSegment
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 MultiModalSegment
impl PartialEq for MultiModalSegment
source§fn eq(&self, other: &MultiModalSegment) -> bool
fn eq(&self, other: &MultiModalSegment) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MultiModalSegment
Auto Trait Implementations§
impl Freeze for MultiModalSegment
impl RefUnwindSafe for MultiModalSegment
impl Send for MultiModalSegment
impl Sync for MultiModalSegment
impl Unpin for MultiModalSegment
impl UnwindSafe for MultiModalSegment
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