pub struct DistanceMatrixEntry {
pub origin_index: u32,
pub destination_index: u32,
pub distance_meters: f64,
pub duration_seconds: f64,
}Expand description
One origin-destination cell of a distance matrix.
Fields§
§origin_index: u32Origin index into the request’s origins.
destination_index: u32Destination index into the request’s destinations.
distance_meters: f64Distance for this cell in meters.
duration_seconds: f64Travel time for this cell in seconds.
Trait Implementations§
Source§impl Clone for DistanceMatrixEntry
impl Clone for DistanceMatrixEntry
Source§fn clone(&self) -> DistanceMatrixEntry
fn clone(&self) -> DistanceMatrixEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DistanceMatrixEntry
Source§impl Debug for DistanceMatrixEntry
impl Debug for DistanceMatrixEntry
Source§impl<'de> Deserialize<'de> for DistanceMatrixEntry
impl<'de> Deserialize<'de> for DistanceMatrixEntry
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
Source§impl PartialEq for DistanceMatrixEntry
impl PartialEq for DistanceMatrixEntry
Source§impl Serialize for DistanceMatrixEntry
impl Serialize for DistanceMatrixEntry
impl StructuralPartialEq for DistanceMatrixEntry
Auto Trait Implementations§
impl Freeze for DistanceMatrixEntry
impl RefUnwindSafe for DistanceMatrixEntry
impl Send for DistanceMatrixEntry
impl Sync for DistanceMatrixEntry
impl Unpin for DistanceMatrixEntry
impl UnsafeUnpin for DistanceMatrixEntry
impl UnwindSafe for DistanceMatrixEntry
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