Trait schema_org_types::BrandTrait
source · 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§
sourcefn get_aggregate_rating(&self) -> &[AggregateRatingProperty]
fn get_aggregate_rating(&self) -> &[AggregateRatingProperty]
Get https://schema.org/aggregateRating from Self
as borrowed slice.
sourcefn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>
fn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>
Take https://schema.org/aggregateRating from Self
as owned vector.
sourcefn get_logo(&self) -> &[LogoProperty]
fn get_logo(&self) -> &[LogoProperty]
Get https://schema.org/logo from Self
as borrowed slice.
sourcefn take_logo(&mut self) -> Vec<LogoProperty>
fn take_logo(&mut self) -> Vec<LogoProperty>
Take https://schema.org/logo from Self
as owned vector.
sourcefn get_review(&self) -> &[ReviewProperty]
fn get_review(&self) -> &[ReviewProperty]
Get https://schema.org/review from Self
as borrowed slice.
sourcefn take_review(&mut self) -> Vec<ReviewProperty>
fn take_review(&mut self) -> Vec<ReviewProperty>
Take https://schema.org/review from Self
as owned vector.
sourcefn get_slogan(&self) -> &[SloganProperty]
fn get_slogan(&self) -> &[SloganProperty]
Get https://schema.org/slogan from Self
as borrowed slice.
sourcefn take_slogan(&mut self) -> Vec<SloganProperty>
fn take_slogan(&mut self) -> Vec<SloganProperty>
Take https://schema.org/slogan from Self
as owned vector.