Struct google_maps::elevation::response::Response
source · pub struct Response {
pub error_message: Option<String>,
pub results: Option<Vec<Point>>,
pub status: Status,
}
Expand description
The response from the Google Maps Elevation API is stored in this structure.
Fields§
§error_message: Option<String>
When the status code is other than OK
, there may be an additional
error_message
field within the Elevation response object. This field
contains more detailed information about the reasons behind the given
status code.
Note: This field is not guaranteed to be always present, and its content is subject to change.
results: Option<Vec<Point>>
If there was only one location
in the query, there will only be one
sample point in the response. If there were multiple locations
or a
path
in the query, there will be multiple sample points in the
response.
status: Status
The status of the response.
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<Response> for Response
impl PartialEq<Response> for Response
source§impl PartialOrd<Response> for Response
impl PartialOrd<Response> for Response
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more