pub trait BrandTrait {
    // Required methods
    fn get_aggregate_rating(&self) -> &[AggregateRatingProperty];
    fn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>;
    fn get_logo(&self) -> &[LogoProperty];
    fn take_logo(&mut self) -> Vec<LogoProperty>;
    fn get_review(&self) -> &[ReviewProperty];
    fn take_review(&mut self) -> Vec<ReviewProperty>;
    fn get_slogan(&self) -> &[SloganProperty];
    fn take_slogan(&mut self) -> Vec<SloganProperty>;
}
Expand description

This trait is for properties from https://schema.org/Brand.

Required Methods§

source

fn get_aggregate_rating(&self) -> &[AggregateRatingProperty]

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

source

fn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>

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

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

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

source

fn get_review(&self) -> &[ReviewProperty]

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

source

fn take_review(&mut self) -> Vec<ReviewProperty>

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

source

fn get_slogan(&self) -> &[SloganProperty]

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

source

fn take_slogan(&mut self) -> Vec<SloganProperty>

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

Implementors§