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: f64Estimated elapsed time in seconds
length: f64Distance 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: boolIf the path uses one or more toll segments
has_highway: boolIf the path uses one or more highway segments
has_ferry: boolif the path uses one or more ferry segments
min_lat: f64Minimum latitude of the sections bounding box
min_lon: f64Minimum longitude of the sections bounding box
max_lat: f64Maximum latitude of the sections bounding box
max_lon: f64Maximum 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