Trait schema_org_types::DrugClassTrait
source · pub trait DrugClassTrait {
// Required methods
fn get_drug(&self) -> &[DrugProperty];
fn take_drug(&mut self) -> Vec<DrugProperty>;
}
Expand description
This trait is for properties from https://schema.org/DrugClass.
Required Methods§
sourcefn get_drug(&self) -> &[DrugProperty]
fn get_drug(&self) -> &[DrugProperty]
Get https://schema.org/drug from Self
as borrowed slice.
sourcefn take_drug(&mut self) -> Vec<DrugProperty>
fn take_drug(&mut self) -> Vec<DrugProperty>
Take https://schema.org/drug from Self
as owned vector.