pub struct MatchedPoint {
pub lat: f64,
pub lon: f64,
pub type: Option<String>,
pub edge_index: Option<u32>,
pub distance_along_edge: Option<f64>,
}Expand description
A matched point in the trace_attributes response.
Fields§
§lat: f64Latitude of the matched point
lon: f64Longitude of the matched point
type: Option<String>Match type
edge_index: Option<u32>Index of the edge this point was matched to
distance_along_edge: Option<f64>Distance along the edge
Trait Implementations§
Source§impl Clone for MatchedPoint
impl Clone for MatchedPoint
Source§fn clone(&self) -> MatchedPoint
fn clone(&self) -> MatchedPoint
Returns a duplicate 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 MatchedPoint
impl Debug for MatchedPoint
Source§impl<'de> Deserialize<'de> for MatchedPoint
impl<'de> Deserialize<'de> for MatchedPoint
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 MatchedPoint
impl RefUnwindSafe for MatchedPoint
impl Send for MatchedPoint
impl Sync for MatchedPoint
impl Unpin for MatchedPoint
impl UnsafeUnpin for MatchedPoint
impl UnwindSafe for MatchedPoint
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