pub struct VerboseResponse {
pub id: Option<String>,
pub algorithm: String,
pub units: Units,
pub warnings: Vec<Value>,
pub sources: Vec<VerboseLocation>,
pub targets: Vec<VerboseLocation>,
pub sources_to_targets: Vec<Vec<VerboseSourceToTarget>>,
}
Expand description
Verbose 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: Vec<VerboseLocation>
The sources of the matrix
targets: Vec<VerboseLocation>
The targets of the matrix
sources_to_targets: Vec<Vec<VerboseSourceToTarget>>
A flat list of objects for distances & durations explicitly specifying the source
& target
indices.
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 VerboseResponse
impl Clone for VerboseResponse
Source§fn clone(&self) -> VerboseResponse
fn clone(&self) -> VerboseResponse
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 VerboseResponse
impl Debug for VerboseResponse
Source§impl<'de> Deserialize<'de> for VerboseResponse
impl<'de> Deserialize<'de> for VerboseResponse
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 VerboseResponse
impl RefUnwindSafe for VerboseResponse
impl Send for VerboseResponse
impl Sync for VerboseResponse
impl Unpin for VerboseResponse
impl UnwindSafe for VerboseResponse
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