pub struct Step {
pub mode: TravelMode,
pub instruction: String,
pub distance: f64,
pub duration: f64,
pub line: Option<String>,
pub vehicle: Option<String>,
pub stops: Option<u32>,
pub from: Option<String>,
pub to: Option<String>,
pub departure: Option<DateTime<Utc>>,
pub arrival: Option<DateTime<Utc>>,
}Expand description
One instruction along a route. Transit steps also carry the line, stops and times.
Fields§
§mode: TravelMode§instruction: String§distance: f64Meters.
duration: f64Seconds.
line: Option<String>§vehicle: Option<String>§stops: Option<u32>§from: Option<String>§to: Option<String>§departure: Option<DateTime<Utc>>§arrival: Option<DateTime<Utc>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Step
impl<'de> Deserialize<'de> for Step
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
Auto Trait Implementations§
impl Forget for Step
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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