Trait schema_org_types::SubstanceTrait
source · pub trait SubstanceTrait {
// Required methods
fn get_active_ingredient(&self) -> &[ActiveIngredientProperty];
fn take_active_ingredient(&mut self) -> Vec<ActiveIngredientProperty>;
fn get_maximum_intake(&self) -> &[MaximumIntakeProperty];
fn take_maximum_intake(&mut self) -> Vec<MaximumIntakeProperty>;
}
Expand description
This trait is for properties from https://schema.org/Substance.
Required Methods§
sourcefn get_active_ingredient(&self) -> &[ActiveIngredientProperty]
fn get_active_ingredient(&self) -> &[ActiveIngredientProperty]
Get https://schema.org/activeIngredient from Self
as borrowed slice.
sourcefn take_active_ingredient(&mut self) -> Vec<ActiveIngredientProperty>
fn take_active_ingredient(&mut self) -> Vec<ActiveIngredientProperty>
Take https://schema.org/activeIngredient from Self
as owned vector.
sourcefn get_maximum_intake(&self) -> &[MaximumIntakeProperty]
fn get_maximum_intake(&self) -> &[MaximumIntakeProperty]
Get https://schema.org/maximumIntake from Self
as borrowed slice.
sourcefn take_maximum_intake(&mut self) -> Vec<MaximumIntakeProperty>
fn take_maximum_intake(&mut self) -> Vec<MaximumIntakeProperty>
Take https://schema.org/maximumIntake from Self
as owned vector.