pub struct GoogleMapsPlacesV1SearchTextRequestLocationRestriction {
pub rectangle: Option<GoogleGeoTypeViewport>,
}Expand description
The region to search. This location serves as a restriction which means results outside given location will not be returned.
This type is not used in any activity, and only used as part of another schema.
Fields§
§rectangle: Option<GoogleGeoTypeViewport>A rectangle box defined by northeast and southwest corner. rectangle.high() must be the northeast point of the rectangle viewport. rectangle.low() must be the southwest point of the rectangle viewport. rectangle.low().latitude() cannot be greater than rectangle.high().latitude(). This will result in an empty latitude range. A rectangle viewport cannot be wider than 180 degrees.
Trait Implementations§
Source§impl Clone for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
impl Clone for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
Source§fn clone(&self) -> GoogleMapsPlacesV1SearchTextRequestLocationRestriction
fn clone(&self) -> GoogleMapsPlacesV1SearchTextRequestLocationRestriction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
impl Default for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
Source§fn default() -> GoogleMapsPlacesV1SearchTextRequestLocationRestriction
fn default() -> GoogleMapsPlacesV1SearchTextRequestLocationRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
impl<'de> Deserialize<'de> for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
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
impl Part for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
Auto Trait Implementations§
impl Freeze for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
impl RefUnwindSafe for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
impl Send for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
impl Sync for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
impl Unpin for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
impl UnwindSafe for GoogleMapsPlacesV1SearchTextRequestLocationRestriction
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