pub trait RecommendationTrait {
// Required methods
fn get_category(&self) -> &[CategoryProperty];
fn take_category(&mut self) -> Vec<CategoryProperty>;
}
Expand description
This trait is for properties from https://schema.org/Recommendation.
Required Methods§
sourcefn get_category(&self) -> &[CategoryProperty]
fn get_category(&self) -> &[CategoryProperty]
Get https://schema.org/category from Self
as borrowed slice.
sourcefn take_category(&mut self) -> Vec<CategoryProperty>
fn take_category(&mut self) -> Vec<CategoryProperty>
Take https://schema.org/category from Self
as owned vector.