pub struct RouteStep {
pub distance_meters: f64,
pub duration_seconds: f64,
pub maneuver_type: ManeuverType,
pub instruction_display_text: String,
pub instruction_speech_text: String,
pub shape: Vec<GeographicCoordinate>,
pub lane_guidances: Vec<LaneGuidance>,
}Expand description
One maneuver within a route leg.
Fields§
§distance_meters: f64Distance of this step in meters.
duration_seconds: f64Travel time of this step in seconds.
maneuver_type: ManeuverTypeManeuver classification.
instruction_display_text: StringHuman-readable instruction in the display language.
instruction_speech_text: StringInstruction tuned for text-to-speech engines.
shape: Vec<GeographicCoordinate>Step geometry from the previous step end to this maneuver point.
lane_guidances: Vec<LaneGuidance>Lane guidance available at the maneuver, oldest lane first.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RouteStep
impl<'de> Deserialize<'de> for RouteStep
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RouteStep
Auto Trait Implementations§
impl Freeze for RouteStep
impl RefUnwindSafe for RouteStep
impl Send for RouteStep
impl Sync for RouteStep
impl Unpin for RouteStep
impl UnsafeUnpin for RouteStep
impl UnwindSafe for RouteStep
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
Mutably borrows from an owned value. Read more