Struct google_maps::roads::snap_to_roads::response::Response
source · pub struct Response {
pub snapped_points: Vec<SnappedPoint>,
pub warning_message: Option<String>,
pub error: Option<ErrorResponse>,
}
Expand description
The response from the Google Maps Snap To Roads request will be stored in this structure.
§Snap To Roads Responses
For each valid request, the Roads API will return a response in the format indicated within the request URL such as the following JSON response.
Fields§
§snapped_points: Vec<SnappedPoint>
An array of snapped points. See SnappedPoint for more information.
warning_message: Option<String>
A string containing a user-visible warning.
error: Option<ErrorResponse>
In the case of an error, a standard format error response body will be returned and the HTTP status code will be set to an error status.
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
source§impl PartialEq for Response
impl PartialEq for Response
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin 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