Trait schema_org_types::ProductModelTrait
source · pub trait ProductModelTrait {
// Required methods
fn get_is_variant_of(&self) -> &[IsVariantOfProperty];
fn take_is_variant_of(&mut self) -> Vec<IsVariantOfProperty>;
fn get_predecessor_of(&self) -> &[PredecessorOfProperty];
fn take_predecessor_of(&mut self) -> Vec<PredecessorOfProperty>;
fn get_successor_of(&self) -> &[SuccessorOfProperty];
fn take_successor_of(&mut self) -> Vec<SuccessorOfProperty>;
}
Expand description
This trait is for properties from https://schema.org/ProductModel.
Required Methods§
sourcefn get_is_variant_of(&self) -> &[IsVariantOfProperty]
fn get_is_variant_of(&self) -> &[IsVariantOfProperty]
Get https://schema.org/isVariantOf from Self
as borrowed slice.
sourcefn take_is_variant_of(&mut self) -> Vec<IsVariantOfProperty>
fn take_is_variant_of(&mut self) -> Vec<IsVariantOfProperty>
Take https://schema.org/isVariantOf from Self
as owned vector.
sourcefn get_predecessor_of(&self) -> &[PredecessorOfProperty]
fn get_predecessor_of(&self) -> &[PredecessorOfProperty]
Get https://schema.org/predecessorOf from Self
as borrowed slice.
sourcefn take_predecessor_of(&mut self) -> Vec<PredecessorOfProperty>
fn take_predecessor_of(&mut self) -> Vec<PredecessorOfProperty>
Take https://schema.org/predecessorOf from Self
as owned vector.
sourcefn get_successor_of(&self) -> &[SuccessorOfProperty]
fn get_successor_of(&self) -> &[SuccessorOfProperty]
Get https://schema.org/successorOf from Self
as borrowed slice.
sourcefn take_successor_of(&mut self) -> Vec<SuccessorOfProperty>
fn take_successor_of(&mut self) -> Vec<SuccessorOfProperty>
Take https://schema.org/successorOf from Self
as owned vector.