Struct google_maps::places::place_review::PlaceReview
source · pub struct PlaceReview {
pub author_name: String,
pub rating: u8,
pub relative_time_description: String,
pub time: DateTime<Utc>,
pub author_url: Option<String>,
pub language: Option<Language>,
pub original_language: Option<Language>,
pub profile_photo_url: Option<String>,
pub text: Option<String>,
pub translated: Option<bool>,
}
Expand description
A review of the place submitted by a user.
Fields§
The name of the user who submitted the review. Anonymous reviews are attributed to “A Google user”.
rating: u8
The user’s overall rating for this place. This is a whole number, ranging from 1 to 5.
relative_time_description: String
The time that the review was submitted in text, relative to the current time.
time: DateTime<Utc>
The time that the review was submitted, measured in the number of seconds since since midnight, January 1, 1970 UTC.
The URL to the user’s Google Maps Local Guides profile, if available.
language: Option<Language>
An IETF language code indicating the language of the returned review. This field contains the main language tag only, and not the secondary tag indicating country or region. For example, all the English reviews are tagged as ‘en’, and not ‘en-AU’ or ‘en-UK’ and so on. This field is empty if there is only a rating with no review text.
original_language: Option<Language>
An IETF language code indicating the original language of the review. If the review has been translated, then original_language != language. This field contains the main language tag only, and not the secondary tag indicating country or region. For example, all the English reviews are tagged as ‘en’, and not ‘en-AU’ or ‘en-UK’ and so on. This field is empty if there is only a rating with no review text.
profile_photo_url: Option<String>
The URL to the user’s profile photo, if available.
text: Option<String>
The user’s review. When reviewing a location with Google Places, text
reviews are considered optional. Therefore, this field may be empty.
Note that this field may include simple HTML markup. For example, the
entity reference &
may represent an ampersand character.
translated: Option<bool>
A boolean value indicating if the review was translated from the original language it was written in. If a review has been translated, corresponding to a value of true, Google recommends that you indicate this to your users. For example, you can add the following string, “Translated by Google”, to the review.
Trait Implementations§
source§impl Clone for PlaceReview
impl Clone for PlaceReview
source§fn clone(&self) -> PlaceReview
fn clone(&self) -> PlaceReview
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlaceReview
impl Debug for PlaceReview
source§impl Default for PlaceReview
impl Default for PlaceReview
source§fn default() -> PlaceReview
fn default() -> PlaceReview
source§impl<'de> Deserialize<'de> for PlaceReview
impl<'de> Deserialize<'de> for PlaceReview
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 FromStr for PlaceReview
impl FromStr for PlaceReview
source§impl Hash for PlaceReview
impl Hash for PlaceReview
source§impl Ord for PlaceReview
impl Ord for PlaceReview
source§fn cmp(&self, other: &PlaceReview) -> Ordering
fn cmp(&self, other: &PlaceReview) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<PlaceReview> for PlaceReview
impl PartialEq<PlaceReview> for PlaceReview
source§fn eq(&self, other: &PlaceReview) -> bool
fn eq(&self, other: &PlaceReview) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PlaceReview> for PlaceReview
impl PartialOrd<PlaceReview> for PlaceReview
source§fn partial_cmp(&self, other: &PlaceReview) -> Option<Ordering>
fn partial_cmp(&self, other: &PlaceReview) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PlaceReview
impl Serialize for PlaceReview
impl Eq for PlaceReview
impl StructuralEq for PlaceReview
impl StructuralPartialEq for PlaceReview
Auto Trait Implementations§
impl RefUnwindSafe for PlaceReview
impl Send for PlaceReview
impl Sync for PlaceReview
impl Unpin for PlaceReview
impl UnwindSafe for PlaceReview
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
key
and return true
if they are equal.