Struct google_maps::places::place_search::text_search::response::Response
source · pub struct Response {
pub html_attributions: Vec<String>,
pub results: Vec<Place>,
pub status: Status,
pub error_message: Option<String>,
pub info_messages: Option<Vec<String>>,
pub next_page_token: Option<String>,
}
Expand description
The response from the Google Maps Places API Text Search request will be stored in this structure.
See Text Search responses for more information.
Fields§
§html_attributions: Vec<String>
May contain a set of attributions about this listing which must be displayed to the user (some listings may not have attribution).
results: Vec<Place>
Contains an array of places.
- Place Search requests return a subset of the fields that are returned
by Place Details requests. If the field you want is not returned by
Place Search, you can use Place Search to get a
place_id
, then use that Place ID to make a Place Details request.
See Place for more information.
status: Status
Contains the status of the request, and may contain debugging information to help you track down why the request failed.
See PlacesSearchStatus for more information.
error_message: Option<String>
When the service returns a status code other than OK<
, there may be an
additional error_message
field within the response object. This field
contains more detailed information about thereasons behind the given
status code. This field is not always returned, and its content is
subject to change.
info_messages: Option<Vec<String>>
When the service returns additional information about the request
specification, there may be an additional info_messages
field within
the response object. This field is only returned for successful
requests. It may not always be returned, and its content is subject to
change.
next_page_token: Option<String>
Contains a token that can be used to return up to 20 additional results. A next_page_token will not be returned if there are no additional results to display. The maximum number of results that can be returned is 60. There is a short delay between when a next_page_token is issued, and when it will become valid.
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>,
source§impl PartialEq for Response
impl PartialEq for Response
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.