Trait schema_org_types::DrugStrengthTrait
source · pub trait DrugStrengthTrait {
// Required methods
fn get_active_ingredient(&self) -> &[ActiveIngredientProperty];
fn take_active_ingredient(&mut self) -> Vec<ActiveIngredientProperty>;
fn get_available_in(&self) -> &[AvailableInProperty];
fn take_available_in(&mut self) -> Vec<AvailableInProperty>;
fn get_maximum_intake(&self) -> &[MaximumIntakeProperty];
fn take_maximum_intake(&mut self) -> Vec<MaximumIntakeProperty>;
fn get_strength_unit(&self) -> &[StrengthUnitProperty];
fn take_strength_unit(&mut self) -> Vec<StrengthUnitProperty>;
fn get_strength_value(&self) -> &[StrengthValueProperty];
fn take_strength_value(&mut self) -> Vec<StrengthValueProperty>;
}
Expand description
This trait is for properties from https://schema.org/DrugStrength.
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_available_in(&self) -> &[AvailableInProperty]
fn get_available_in(&self) -> &[AvailableInProperty]
Get https://schema.org/availableIn from Self
as borrowed slice.
sourcefn take_available_in(&mut self) -> Vec<AvailableInProperty>
fn take_available_in(&mut self) -> Vec<AvailableInProperty>
Take https://schema.org/availableIn 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.
sourcefn get_strength_unit(&self) -> &[StrengthUnitProperty]
fn get_strength_unit(&self) -> &[StrengthUnitProperty]
Get https://schema.org/strengthUnit from Self
as borrowed slice.
sourcefn take_strength_unit(&mut self) -> Vec<StrengthUnitProperty>
fn take_strength_unit(&mut self) -> Vec<StrengthUnitProperty>
Take https://schema.org/strengthUnit from Self
as owned vector.
sourcefn get_strength_value(&self) -> &[StrengthValueProperty]
fn get_strength_value(&self) -> &[StrengthValueProperty]
Get https://schema.org/strengthValue from Self
as borrowed slice.
sourcefn take_strength_value(&mut self) -> Vec<StrengthValueProperty>
fn take_strength_value(&mut self) -> Vec<StrengthValueProperty>
Take https://schema.org/strengthValue from Self
as owned vector.