Struct google_maps::places::place_photo::PlacePhoto
source · pub struct PlacePhoto {
pub height: u16,
pub html_attributions: Vec<String>,
pub photo_reference: String,
pub width: u16,
}
Expand description
A photo of a Place. The photo can be accesed via the Place Photo API using an url in the following pattern:
https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photo_reference=photo_reference&key=YOUR_API_KEY
See Place Photos for more information.
Fields§
§height: u16
The height of the photo.
html_attributions: Vec<String>
The HTML attributions for the photo.
photo_reference: String
A string used to identify the photo when you perform a Photo request.
width: u16
The width of the photo.
Trait Implementations§
source§impl Clone for PlacePhoto
impl Clone for PlacePhoto
source§fn clone(&self) -> PlacePhoto
fn clone(&self) -> PlacePhoto
Returns a copy 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 Debug for PlacePhoto
impl Debug for PlacePhoto
source§impl Default for PlacePhoto
impl Default for PlacePhoto
source§fn default() -> PlacePhoto
fn default() -> PlacePhoto
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PlacePhoto
impl<'de> Deserialize<'de> for PlacePhoto
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 FromStr for PlacePhoto
impl FromStr for PlacePhoto
source§impl Hash for PlacePhoto
impl Hash for PlacePhoto
source§impl Ord for PlacePhoto
impl Ord for PlacePhoto
source§fn cmp(&self, other: &PlacePhoto) -> Ordering
fn cmp(&self, other: &PlacePhoto) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PlacePhoto> for PlacePhoto
impl PartialEq<PlacePhoto> for PlacePhoto
source§fn eq(&self, other: &PlacePhoto) -> bool
fn eq(&self, other: &PlacePhoto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PlacePhoto> for PlacePhoto
impl PartialOrd<PlacePhoto> for PlacePhoto
source§fn partial_cmp(&self, other: &PlacePhoto) -> Option<Ordering>
fn partial_cmp(&self, other: &PlacePhoto) -> Option<Ordering>
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 moresource§impl Serialize for PlacePhoto
impl Serialize for PlacePhoto
impl Eq for PlacePhoto
impl StructuralEq for PlacePhoto
impl StructuralPartialEq for PlacePhoto
Auto Trait Implementations§
impl RefUnwindSafe for PlacePhoto
impl Send for PlacePhoto
impl Sync for PlacePhoto
impl Unpin for PlacePhoto
impl UnwindSafe for PlacePhoto
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.