pub struct Bounds {
pub southwest: LatLng,
pub northeast: LatLng,
}Expand description
Contains the recommended viewport for displaying the returned result, specified as two latitude & longitude pairs defining the southwest and northeast corner of the viewport bounding box. Generally the viewport is used to frame a result when displaying it to a user.
Fields§
§southwest: LatLngSouth-west or bottom-left corner of the bounding box.
northeast: LatLngNorth-east or top-right corner of the bounding box.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bounds
impl<'de> Deserialize<'de> for Bounds
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 From<&Bounds> for Viewport
Available on crate features directions or distance_matrix or geocoding or places only.
impl From<&Bounds> for Viewport
Available on crate features
directions or distance_matrix or geocoding or places only.Source§impl From<&Viewport> for Bounds
Available on crate features directions or distance_matrix or geocoding or places only.
impl From<&Viewport> for Bounds
Available on crate features
directions or distance_matrix or geocoding or places only.Source§impl From<Bounds> for Viewport
Available on crate features directions or distance_matrix or geocoding or places only.
impl From<Bounds> for Viewport
Available on crate features
directions or distance_matrix or geocoding or places only.Source§impl From<Viewport> for Bounds
Available on crate features directions or distance_matrix or geocoding or places only.
impl From<Viewport> for Bounds
Available on crate features
directions or distance_matrix or geocoding or places only.Source§impl Ord for Bounds
impl Ord for Bounds
Source§impl PartialOrd for Bounds
impl PartialOrd for Bounds
impl Copy for Bounds
impl Eq for Bounds
impl StructuralPartialEq for Bounds
Auto Trait Implementations§
impl Freeze for Bounds
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnwindSafe for Bounds
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.