pub trait AggregateRatingTrait {
// Required methods
fn get_item_reviewed(&self) -> &[ItemReviewedProperty];
fn take_item_reviewed(&mut self) -> Vec<ItemReviewedProperty>;
fn get_rating_count(&self) -> &[RatingCountProperty];
fn take_rating_count(&mut self) -> Vec<RatingCountProperty>;
fn get_review_count(&self) -> &[ReviewCountProperty];
fn take_review_count(&mut self) -> Vec<ReviewCountProperty>;
}
Expand description
This trait is for properties from https://schema.org/AggregateRating.
Required Methods§
sourcefn get_item_reviewed(&self) -> &[ItemReviewedProperty]
fn get_item_reviewed(&self) -> &[ItemReviewedProperty]
Get https://schema.org/itemReviewed from Self
as borrowed slice.
sourcefn take_item_reviewed(&mut self) -> Vec<ItemReviewedProperty>
fn take_item_reviewed(&mut self) -> Vec<ItemReviewedProperty>
Take https://schema.org/itemReviewed from Self
as owned vector.
sourcefn get_rating_count(&self) -> &[RatingCountProperty]
fn get_rating_count(&self) -> &[RatingCountProperty]
Get https://schema.org/ratingCount from Self
as borrowed slice.
sourcefn take_rating_count(&mut self) -> Vec<RatingCountProperty>
fn take_rating_count(&mut self) -> Vec<RatingCountProperty>
Take https://schema.org/ratingCount from Self
as owned vector.
sourcefn get_review_count(&self) -> &[ReviewCountProperty]
fn get_review_count(&self) -> &[ReviewCountProperty]
Get https://schema.org/reviewCount from Self
as borrowed slice.
sourcefn take_review_count(&mut self) -> Vec<ReviewCountProperty>
fn take_review_count(&mut self) -> Vec<ReviewCountProperty>
Take https://schema.org/reviewCount from Self
as owned vector.