GoogleMapsPlacesV1SearchTextRequest

Struct GoogleMapsPlacesV1SearchTextRequest 

Source
pub struct GoogleMapsPlacesV1SearchTextRequest {
Show 18 fields pub ev_options: Option<GoogleMapsPlacesV1SearchTextRequestEVOptions>, pub include_pure_service_area_businesses: Option<bool>, pub included_type: Option<String>, pub language_code: Option<String>, pub location_bias: Option<GoogleMapsPlacesV1SearchTextRequestLocationBias>, pub location_restriction: Option<GoogleMapsPlacesV1SearchTextRequestLocationRestriction>, pub max_result_count: Option<i32>, pub min_rating: Option<f64>, pub open_now: Option<bool>, pub page_size: Option<i32>, pub page_token: Option<String>, pub price_levels: Option<Vec<String>>, pub rank_preference: Option<String>, pub region_code: Option<String>, pub routing_parameters: Option<GoogleMapsPlacesV1RoutingParameters>, pub search_along_route_parameters: Option<GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters>, pub strict_type_filtering: Option<bool>, pub text_query: Option<String>,
}
Expand description

Request proto for SearchText.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§ev_options: Option<GoogleMapsPlacesV1SearchTextRequestEVOptions>

Optional. Set the searchable EV options of a place search request.

§include_pure_service_area_businesses: Option<bool>

Optional. Include pure service area businesses if the field is set to true. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses do not have a physical address or location on Google Maps. Places will not return fields including location, plus_code, and other location related fields for these businesses.

§included_type: Option<String>

The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types. Only support one included type.

§language_code: Option<String>

Place details will be displayed with the preferred language if available. If the language code is unspecified or unrecognized, place details of any language may be returned, with a preference for English if such details exist. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport.

§location_bias: Option<GoogleMapsPlacesV1SearchTextRequestLocationBias>

The region to search. This location serves as a bias which means results around given location might be returned. Cannot be set along with location_restriction.

§location_restriction: Option<GoogleMapsPlacesV1SearchTextRequestLocationRestriction>

The region to search. This location serves as a restriction which means results outside given location will not be returned. Cannot be set along with location_bias.

§max_result_count: Option<i32>

Deprecated: Use page_size instead. The maximum number of results per page that can be returned. If the number of available results is larger than max_result_count, a next_page_token is returned which can be passed to page_token to get the next page of results in subsequent requests. If 0 or no value is provided, a default of 20 is used. The maximum value is 20; values above 20 will be coerced to 20. Negative values will return an INVALID_ARGUMENT error. If both max_result_count and page_size are specified, max_result_count will be ignored.

§min_rating: Option<f64>

Filter out results whose average user rating is strictly less than this limit. A valid value must be a float between 0 and 5 (inclusively) at a 0.5 cadence i.e. [0, 0.5, 1.0, … , 5.0] inclusively. The input rating will round up to the nearest 0.5(ceiling). For instance, a rating of 0.6 will eliminate all results with a less than 1.0 rating.

§open_now: Option<bool>

Used to restrict the search to places that are currently open. The default is false.

§page_size: Option<i32>

Optional. The maximum number of results per page that can be returned. If the number of available results is larger than page_size, a next_page_token is returned which can be passed to page_token to get the next page of results in subsequent requests. If 0 or no value is provided, a default of 20 is used. The maximum value is 20; values above 20 will be set to 20. Negative values will return an INVALID_ARGUMENT error. If both max_result_count and page_size are specified, max_result_count will be ignored.

§page_token: Option<String>

Optional. A page token, received from a previous TextSearch call. Provide this to retrieve the subsequent page. When paginating, all parameters other than page_token, page_size, and max_result_count provided to TextSearch must match the initial call that provided the page token. Otherwise an INVALID_ARGUMENT error is returned.

§price_levels: Option<Vec<String>>

Used to restrict the search to places that are marked as certain price levels. Users can choose any combinations of price levels. Default to select all price levels.

§rank_preference: Option<String>

How results will be ranked in the response.

§region_code: Option<String>

The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.

§routing_parameters: Option<GoogleMapsPlacesV1RoutingParameters>

Optional. Additional parameters for routing to results.

§search_along_route_parameters: Option<GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters>

Optional. Additional parameters proto for searching along a route.

§strict_type_filtering: Option<bool>

Used to set strict type filtering for included_type. If set to true, only results of the same type will be returned. Default to false.

§text_query: Option<String>

Required. The text query for textual search.

Trait Implementations§

Source§

impl Clone for GoogleMapsPlacesV1SearchTextRequest

Source§

fn clone(&self) -> GoogleMapsPlacesV1SearchTextRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GoogleMapsPlacesV1SearchTextRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GoogleMapsPlacesV1SearchTextRequest

Source§

fn default() -> GoogleMapsPlacesV1SearchTextRequest

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for GoogleMapsPlacesV1SearchTextRequest

Source§

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 Serialize for GoogleMapsPlacesV1SearchTextRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl RequestValue for GoogleMapsPlacesV1SearchTextRequest

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,