pub struct StepInstruction {
pub relative_direction: Direction,
pub distance: f64,
pub from_level: f64,
pub to_level: f64,
pub osm_way: Option<i32>,
pub polyline: Box<EncodedPolyline>,
pub street_name: String,
pub exit: String,
pub stay_on: bool,
pub area: bool,
}
Fields§
§relative_direction: Direction
§distance: f64
The distance in meters that this step takes.
from_level: f64
level where this segment starts, based on OpenStreetMap data
to_level: f64
level where this segment starts, based on OpenStreetMap data
osm_way: Option<i32>
OpenStreetMap way index
polyline: Box<EncodedPolyline>
§street_name: String
The name of the street.
exit: String
Not implemented! When exiting a highway or traffic circle, the exit name/number.
stay_on: bool
Not implemented! Indicates whether or not a street changes direction at an intersection.
area: bool
Not implemented! This step is on an open area, such as a plaza or train platform, and thus the directions should say something like "cross"
Implementations§
Trait Implementations§
Source§impl Clone for StepInstruction
impl Clone for StepInstruction
Source§fn clone(&self) -> StepInstruction
fn clone(&self) -> StepInstruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StepInstruction
impl Debug for StepInstruction
Source§impl Default for StepInstruction
impl Default for StepInstruction
Source§fn default() -> StepInstruction
fn default() -> StepInstruction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StepInstruction
impl<'de> Deserialize<'de> for StepInstruction
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
Source§impl PartialEq for StepInstruction
impl PartialEq for StepInstruction
Source§impl Serialize for StepInstruction
impl Serialize for StepInstruction
impl StructuralPartialEq for StepInstruction
Auto Trait Implementations§
impl Freeze for StepInstruction
impl RefUnwindSafe for StepInstruction
impl Send for StepInstruction
impl Sync for StepInstruction
impl Unpin for StepInstruction
impl UnwindSafe for StepInstruction
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