pub struct ConciseResponse {
pub id: Option<String>,
pub algorithm: String,
pub units: Units,
pub warnings: Vec<Value>,
pub sources_to_targets: ConciseSourceToTargets,
}
Expand description
Concise response to the matrix request
Fields§
§id: Option<String>
Name of the route request.
If id is specified via Manifest::id
the naming will be sent through to the response.
algorithm: String
Algorithm used
units: Units
Distance units for output.
Possible unit types are miles via super::Units::Imperial
and kilometers via super::Units::Metric
.
Default: super::Units::Metric
warnings: Vec<Value>
This array may contain warning objects informing about deprecated request parameters, clamped values etc.
sources_to_targets: ConciseSourceToTargets
More compact, nested row-major distances & durations
The arrays rows are:
- time and distance from the first source location to all target locations,
- time and distance from the second source location to all target locations,
- etc.
Trait Implementations§
Source§impl Clone for ConciseResponse
impl Clone for ConciseResponse
Source§fn clone(&self) -> ConciseResponse
fn clone(&self) -> ConciseResponse
Returns a copy 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 ConciseResponse
impl Debug for ConciseResponse
Source§impl<'de> Deserialize<'de> for ConciseResponse
impl<'de> Deserialize<'de> for ConciseResponse
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 ConciseResponse
impl RefUnwindSafe for ConciseResponse
impl Send for ConciseResponse
impl Sync for ConciseResponse
impl Unpin for ConciseResponse
impl UnwindSafe for ConciseResponse
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