pub struct Response {
pub edges: Vec<Edge>,
pub matched_points: Vec<MatchedPoint>,
pub shape: Option<String>,
pub units: Option<String>,
pub id: Option<String>,
pub warnings: Vec<Value>,
}Expand description
Response from the trace_attributes API.
Fields§
§edges: Vec<Edge>Matched edges with attributes
matched_points: Vec<MatchedPoint>Matched input points
shape: Option<String>Encoded polyline of the matched path
units: Option<String>Units used in the response
id: Option<String>Name of the request (echoed from the request)
warnings: Vec<Value>This array may contain warning objects informing about deprecated request parameters, clamped values, etc.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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