pub struct Leg {
pub summary: Summary,
pub maneuvers: Vec<Maneuver>,
pub shape: Vec<ShapePoint>,
}
Expand description
A leg is a section of the route between two locations.
Fields§
§summary: Summary
Summary information about the leg
maneuvers: Vec<Maneuver>
Maneuver information
shape: Vec<ShapePoint>
The shape of the leg
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Leg
impl<'de> Deserialize<'de> for Leg
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 Freeze for Leg
impl RefUnwindSafe for Leg
impl Send for Leg
impl Sync for Leg
impl Unpin for Leg
impl UnwindSafe for Leg
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