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§

source

fn get_author(&self) -> &[AuthorProperty]

Get https://schema.org/author from Self as borrowed slice.

source

fn take_author(&mut self) -> Vec<AuthorProperty>

Take https://schema.org/author from Self as owned vector.

source

fn get_best_rating(&self) -> &[BestRatingProperty]

Get https://schema.org/bestRating from Self as borrowed slice.

source

fn take_best_rating(&mut self) -> Vec<BestRatingProperty>

Take https://schema.org/bestRating from Self as owned vector.

source

fn get_rating_explanation(&self) -> &[RatingExplanationProperty]

Get https://schema.org/ratingExplanation from Self as borrowed slice.

source

fn take_rating_explanation(&mut self) -> Vec<RatingExplanationProperty>

Take https://schema.org/ratingExplanation from Self as owned vector.

source

fn get_rating_value(&self) -> &[RatingValueProperty]

Get https://schema.org/ratingValue from Self as borrowed slice.

source

fn take_rating_value(&mut self) -> Vec<RatingValueProperty>

Take https://schema.org/ratingValue from Self as owned vector.

source

fn get_review_aspect(&self) -> &[ReviewAspectProperty]

Get https://schema.org/reviewAspect from Self as borrowed slice.

source

fn take_review_aspect(&mut self) -> Vec<ReviewAspectProperty>

Take https://schema.org/reviewAspect from Self as owned vector.

source

fn get_worst_rating(&self) -> &[WorstRatingProperty]

Get https://schema.org/worstRating from Self as borrowed slice.

source

fn take_worst_rating(&mut self) -> Vec<WorstRatingProperty>

Take https://schema.org/worstRating from Self as owned vector.

Implementors§