pub trait ChemicalSubstanceTrait {
// Required methods
fn get_chemical_composition(&self) -> &[ChemicalCompositionProperty];
fn take_chemical_composition(&mut self) -> Vec<ChemicalCompositionProperty>;
fn get_chemical_role(&self) -> &[ChemicalRoleProperty];
fn take_chemical_role(&mut self) -> Vec<ChemicalRoleProperty>;
fn get_potential_use(&self) -> &[PotentialUseProperty];
fn take_potential_use(&mut self) -> Vec<PotentialUseProperty>;
}
Expand description
This trait is for properties from https://schema.org/ChemicalSubstance.
Required Methods§
sourcefn get_chemical_composition(&self) -> &[ChemicalCompositionProperty]
fn get_chemical_composition(&self) -> &[ChemicalCompositionProperty]
Get https://schema.org/chemicalComposition from Self
as borrowed slice.
sourcefn take_chemical_composition(&mut self) -> Vec<ChemicalCompositionProperty>
fn take_chemical_composition(&mut self) -> Vec<ChemicalCompositionProperty>
Take https://schema.org/chemicalComposition from Self
as owned vector.
sourcefn get_chemical_role(&self) -> &[ChemicalRoleProperty]
fn get_chemical_role(&self) -> &[ChemicalRoleProperty]
Get https://schema.org/chemicalRole from Self
as borrowed slice.
sourcefn take_chemical_role(&mut self) -> Vec<ChemicalRoleProperty>
fn take_chemical_role(&mut self) -> Vec<ChemicalRoleProperty>
Take https://schema.org/chemicalRole from Self
as owned vector.
sourcefn get_potential_use(&self) -> &[PotentialUseProperty]
fn get_potential_use(&self) -> &[PotentialUseProperty]
Get https://schema.org/potentialUse from Self
as borrowed slice.
sourcefn take_potential_use(&mut self) -> Vec<PotentialUseProperty>
fn take_potential_use(&mut self) -> Vec<PotentialUseProperty>
Take https://schema.org/potentialUse from Self
as owned vector.