Struct gapi_grpc::google::maps::routes::v1::RouteLeg [−][src]
Encapsulates a segment between non-via
waypoints.
Fields
distance_meters: i32
The travel distance of the route leg, in meters.
duration: Option<Duration>
The length of time needed to navigate the leg. If the route_preference
is set to TRAFFIC_UNAWARE
, then this value is the same as
static_duration
. If the route_preference
is either TRAFFIC_AWARE
or
TRAFFIC_AWARE_OPTIMAL
, then this value is calculated taking traffic
conditions into account.
static_duration: Option<Duration>
The duration of traveling through the leg, calculated without taking traffic conditions into consideration.
polyline: Option<Polyline>
The overall polyline for this leg. This includes that each step
’s
polyline.
start_location: Option<Location>
The start location of this leg. This might be different from the provided
origin
. For example, when the provided origin
is not near a road, this
is a point on the road.
end_location: Option<Location>
The end location of this leg. This might be different from the provided
destination
. For example, when the provided destination
is not near a
road, this is a point on the road.
steps: Vec<RouteLegStep>
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
travel_advisory: Option<RouteLegTravelAdvisory>
Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction etc. on a route leg.
Trait Implementations
impl Clone for RouteLeg
[src]
impl Debug for RouteLeg
[src]
impl Default for RouteLeg
[src]
impl Message for RouteLeg
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<RouteLeg> for RouteLeg
[src]
impl StructuralPartialEq for RouteLeg
[src]
Auto Trait Implementations
impl RefUnwindSafe for RouteLeg
impl Send for RouteLeg
impl Sync for RouteLeg
impl Unpin for RouteLeg
impl UnwindSafe for RouteLeg
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,