pub struct ProductReview {
pub id: i32,
pub date_created: NaiveDateTime,
pub date_created_gmt: NaiveDateTime,
pub product_id: i32,
pub status: ReviewStatus,
pub reviewer: String,
pub reviewer_email: String,
pub review: String,
pub rating: i32,
pub verified: bool,
}Fields§
§id: i32Unique identifier for the resource.
date_created: NaiveDateTimeThe date the review was created, in the site’s timezone.
date_created_gmt: NaiveDateTimeThe date the review was created, as GMT.
product_id: i32Unique identifier for the product that the review belongs to.
status: ReviewStatusStatus of the review. Options: approved, hold, spam, unspam, trash and untrash. Defaults to approved.
reviewer: StringReviewer name.
reviewer_email: StringReviewer email.
review: StringThe content of the review.
rating: i32Review rating (0 to 5).
verified: boolShows if the reviewer bought the product or not.
Implementations§
Trait Implementations§
Source§impl Clone for ProductReview
impl Clone for ProductReview
Source§fn clone(&self) -> ProductReview
fn clone(&self) -> ProductReview
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 Debug for ProductReview
impl Debug for ProductReview
Source§impl<'de> Deserialize<'de> for ProductReview
impl<'de> Deserialize<'de> for ProductReview
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
Auto Trait Implementations§
impl Freeze for ProductReview
impl RefUnwindSafe for ProductReview
impl Send for ProductReview
impl Sync for ProductReview
impl Unpin for ProductReview
impl UnwindSafe for ProductReview
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