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
returns 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
.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
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