Trait schema_org_types::RatingTrait
source · pub trait RatingTrait {
// Required methods
fn get_author(&self) -> &[AuthorProperty];
fn take_author(&mut self) -> Vec<AuthorProperty>;
fn get_best_rating(&self) -> &[BestRatingProperty];
fn take_best_rating(&mut self) -> Vec<BestRatingProperty>;
fn get_rating_explanation(&self) -> &[RatingExplanationProperty];
fn take_rating_explanation(&mut self) -> Vec<RatingExplanationProperty>;
fn get_rating_value(&self) -> &[RatingValueProperty];
fn take_rating_value(&mut self) -> Vec<RatingValueProperty>;
fn get_review_aspect(&self) -> &[ReviewAspectProperty];
fn take_review_aspect(&mut self) -> Vec<ReviewAspectProperty>;
fn get_worst_rating(&self) -> &[WorstRatingProperty];
fn take_worst_rating(&mut self) -> Vec<WorstRatingProperty>;
}
Expand description
This trait is for properties from https://schema.org/Rating.
Required Methods§
Get https://schema.org/author from Self
as borrowed slice.
Take https://schema.org/author from Self
as owned vector.
sourcefn get_best_rating(&self) -> &[BestRatingProperty]
fn get_best_rating(&self) -> &[BestRatingProperty]
Get https://schema.org/bestRating from Self
as borrowed slice.
sourcefn take_best_rating(&mut self) -> Vec<BestRatingProperty>
fn take_best_rating(&mut self) -> Vec<BestRatingProperty>
Take https://schema.org/bestRating from Self
as owned vector.
sourcefn get_rating_explanation(&self) -> &[RatingExplanationProperty]
fn get_rating_explanation(&self) -> &[RatingExplanationProperty]
Get https://schema.org/ratingExplanation from Self
as borrowed slice.
sourcefn take_rating_explanation(&mut self) -> Vec<RatingExplanationProperty>
fn take_rating_explanation(&mut self) -> Vec<RatingExplanationProperty>
Take https://schema.org/ratingExplanation from Self
as owned vector.
sourcefn get_rating_value(&self) -> &[RatingValueProperty]
fn get_rating_value(&self) -> &[RatingValueProperty]
Get https://schema.org/ratingValue from Self
as borrowed slice.
sourcefn take_rating_value(&mut self) -> Vec<RatingValueProperty>
fn take_rating_value(&mut self) -> Vec<RatingValueProperty>
Take https://schema.org/ratingValue from Self
as owned vector.
sourcefn get_review_aspect(&self) -> &[ReviewAspectProperty]
fn get_review_aspect(&self) -> &[ReviewAspectProperty]
Get https://schema.org/reviewAspect from Self
as borrowed slice.
sourcefn take_review_aspect(&mut self) -> Vec<ReviewAspectProperty>
fn take_review_aspect(&mut self) -> Vec<ReviewAspectProperty>
Take https://schema.org/reviewAspect from Self
as owned vector.
sourcefn get_worst_rating(&self) -> &[WorstRatingProperty]
fn get_worst_rating(&self) -> &[WorstRatingProperty]
Get https://schema.org/worstRating from Self
as borrowed slice.
sourcefn take_worst_rating(&mut self) -> Vec<WorstRatingProperty>
fn take_worst_rating(&mut self) -> Vec<WorstRatingProperty>
Take https://schema.org/worstRating from Self
as owned vector.