pub struct Summary {
pub time: f64,
pub length: f64,
pub has_toll: bool,
pub has_highway: bool,
pub has_ferry: bool,
pub min_lat: f64,
pub min_lon: f64,
pub max_lat: f64,
pub max_lon: f64,
}
Expand description
Summary information about the entire trip
Fields§
§time: f64
Estimated elapsed time in seconds
length: f64
Distance traveled
Unit is either super::Units::Metric
or super::Units::Imperial
and specified in Trip
for clarification.
See Manifest::units
to change the units.
has_toll: bool
If the path uses one or more toll segments
has_highway: bool
If the path uses one or more highway segments
has_ferry: bool
if the path uses one or more ferry segments
min_lat: f64
Minimum latitude of the sections bounding box
min_lon: f64
Minimum longitude of the sections bounding box
max_lat: f64
Maximum latitude of the sections bounding box
max_lon: f64
Maximum longitude of the sections bounding box
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Summary
impl<'de> Deserialize<'de> for Summary
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 Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnwindSafe for Summary
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