Struct google_api_proto::google::maps::routing::v2::RouteLegStepTransitDetails
source · pub struct RouteLegStepTransitDetails {
pub stop_details: Option<TransitStopDetails>,
pub localized_values: Option<TransitDetailsLocalizedValues>,
pub headsign: String,
pub headway: Option<Duration>,
pub transit_line: Option<TransitLine>,
pub stop_count: i32,
pub trip_short_text: String,
}
Expand description
Additional information for the RouteLegStep
related to TRANSIT
routes.
Fields§
§stop_details: Option<TransitStopDetails>
Information about the arrival and departure stops for the step.
localized_values: Option<TransitDetailsLocalizedValues>
Text representations of properties of the RouteLegStepTransitDetails
.
headsign: String
Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop. The direction is often the terminus station.
headway: Option<Duration>
Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus.
transit_line: Option<TransitLine>
Information about the transit line used in this step.
stop_count: i32
The number of stops from the departure to the arrival stop. This count includes the arrival stop, but excludes the departure stop. For example, if your route leaves from Stop A, passes through stops B and C, and arrives at stop D, stop_count will return 3.
trip_short_text: String
The text that appears in schedules and sign boards to identify a transit
trip to passengers. The text should uniquely identify a trip within a
service day. For example, “538” is the trip_short_text
of the Amtrak
train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
Trait Implementations§
source§impl Clone for RouteLegStepTransitDetails
impl Clone for RouteLegStepTransitDetails
source§fn clone(&self) -> RouteLegStepTransitDetails
fn clone(&self) -> RouteLegStepTransitDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RouteLegStepTransitDetails
impl Debug for RouteLegStepTransitDetails
source§impl Default for RouteLegStepTransitDetails
impl Default for RouteLegStepTransitDetails
source§impl Message for RouteLegStepTransitDetails
impl Message for RouteLegStepTransitDetails
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 RouteLegStepTransitDetails
impl PartialEq for RouteLegStepTransitDetails
source§fn eq(&self, other: &RouteLegStepTransitDetails) -> bool
fn eq(&self, other: &RouteLegStepTransitDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RouteLegStepTransitDetails
Auto Trait Implementations§
impl Freeze for RouteLegStepTransitDetails
impl RefUnwindSafe for RouteLegStepTransitDetails
impl Send for RouteLegStepTransitDetails
impl Sync for RouteLegStepTransitDetails
impl Unpin for RouteLegStepTransitDetails
impl UnwindSafe for RouteLegStepTransitDetails
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