Struct google_maps::roads::snapped_point::SnappedPoint
source · pub struct SnappedPoint {
pub location: LatLng,
pub place_id: Option<String>,
pub origin_index: Option<usize>,
}
Expand description
Fields§
§location: LatLng
See LatitudeLongitudeLiteral for more information.
place_id: Option<String>
A unique identifier for a place. All place IDs returned by the Roads API correspond to road segments.
origin_index: Option<usize>
An integer that indicates the corresponding value in the original
request. Each value in the request should map to a snapped value in the
response. However, if you’ve set interpolate=true, then it’s possible
that the response will contain more coordinates than the request.
Interpolated values will not have an originalIndex
. These values are
indexed from 0
, so a point with an originalIndex of 4
will be the
snapped value of the 5th latitude/longitude passed to the path
parameter.
Trait Implementations§
source§impl Clone for SnappedPoint
impl Clone for SnappedPoint
source§fn clone(&self) -> SnappedPoint
fn clone(&self) -> SnappedPoint
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 SnappedPoint
impl Debug for SnappedPoint
source§impl<'de> Deserialize<'de> for SnappedPoint
impl<'de> Deserialize<'de> for SnappedPoint
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 Hash for SnappedPoint
impl Hash for SnappedPoint
source§impl PartialEq for SnappedPoint
impl PartialEq for SnappedPoint
source§fn eq(&self, other: &SnappedPoint) -> bool
fn eq(&self, other: &SnappedPoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SnappedPoint
impl Serialize for SnappedPoint
impl Eq for SnappedPoint
impl StructuralPartialEq for SnappedPoint
Auto Trait Implementations§
impl Freeze for SnappedPoint
impl RefUnwindSafe for SnappedPoint
impl Send for SnappedPoint
impl Sync for SnappedPoint
impl Unpin for SnappedPoint
impl UnwindSafe for SnappedPoint
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