Trait schema_org_types::DrugTrait
source · pub trait DrugTrait {
Show 60 methods
// Required methods
fn get_active_ingredient(&self) -> &[ActiveIngredientProperty];
fn take_active_ingredient(&mut self) -> Vec<ActiveIngredientProperty>;
fn get_administration_route(&self) -> &[AdministrationRouteProperty];
fn take_administration_route(&mut self) -> Vec<AdministrationRouteProperty>;
fn get_alcohol_warning(&self) -> &[AlcoholWarningProperty];
fn take_alcohol_warning(&mut self) -> Vec<AlcoholWarningProperty>;
fn get_available_strength(&self) -> &[AvailableStrengthProperty];
fn take_available_strength(&mut self) -> Vec<AvailableStrengthProperty>;
fn get_breastfeeding_warning(&self) -> &[BreastfeedingWarningProperty];
fn take_breastfeeding_warning(
&mut self
) -> Vec<BreastfeedingWarningProperty>;
fn get_clincal_pharmacology(&self) -> &[ClincalPharmacologyProperty];
fn take_clincal_pharmacology(&mut self) -> Vec<ClincalPharmacologyProperty>;
fn get_clinical_pharmacology(&self) -> &[ClinicalPharmacologyProperty];
fn take_clinical_pharmacology(
&mut self
) -> Vec<ClinicalPharmacologyProperty>;
fn get_dosage_form(&self) -> &[DosageFormProperty];
fn take_dosage_form(&mut self) -> Vec<DosageFormProperty>;
fn get_dose_schedule(&self) -> &[DoseScheduleProperty];
fn take_dose_schedule(&mut self) -> Vec<DoseScheduleProperty>;
fn get_drug_class(&self) -> &[DrugClassProperty];
fn take_drug_class(&mut self) -> Vec<DrugClassProperty>;
fn get_drug_unit(&self) -> &[DrugUnitProperty];
fn take_drug_unit(&mut self) -> Vec<DrugUnitProperty>;
fn get_food_warning(&self) -> &[FoodWarningProperty];
fn take_food_warning(&mut self) -> Vec<FoodWarningProperty>;
fn get_included_in_health_insurance_plan(
&self
) -> &[IncludedInHealthInsurancePlanProperty];
fn take_included_in_health_insurance_plan(
&mut self
) -> Vec<IncludedInHealthInsurancePlanProperty>;
fn get_interacting_drug(&self) -> &[InteractingDrugProperty];
fn take_interacting_drug(&mut self) -> Vec<InteractingDrugProperty>;
fn get_is_available_generically(&self) -> &[IsAvailableGenericallyProperty];
fn take_is_available_generically(
&mut self
) -> Vec<IsAvailableGenericallyProperty>;
fn get_is_proprietary(&self) -> &[IsProprietaryProperty];
fn take_is_proprietary(&mut self) -> Vec<IsProprietaryProperty>;
fn get_label_details(&self) -> &[LabelDetailsProperty];
fn take_label_details(&mut self) -> Vec<LabelDetailsProperty>;
fn get_legal_status(&self) -> &[LegalStatusProperty];
fn take_legal_status(&mut self) -> Vec<LegalStatusProperty>;
fn get_maximum_intake(&self) -> &[MaximumIntakeProperty];
fn take_maximum_intake(&mut self) -> Vec<MaximumIntakeProperty>;
fn get_mechanism_of_action(&self) -> &[MechanismOfActionProperty];
fn take_mechanism_of_action(&mut self) -> Vec<MechanismOfActionProperty>;
fn get_non_proprietary_name(&self) -> &[NonProprietaryNameProperty];
fn take_non_proprietary_name(&mut self) -> Vec<NonProprietaryNameProperty>;
fn get_overdosage(&self) -> &[OverdosageProperty];
fn take_overdosage(&mut self) -> Vec<OverdosageProperty>;
fn get_pregnancy_category(&self) -> &[PregnancyCategoryProperty];
fn take_pregnancy_category(&mut self) -> Vec<PregnancyCategoryProperty>;
fn get_pregnancy_warning(&self) -> &[PregnancyWarningProperty];
fn take_pregnancy_warning(&mut self) -> Vec<PregnancyWarningProperty>;
fn get_prescribing_info(&self) -> &[PrescribingInfoProperty];
fn take_prescribing_info(&mut self) -> Vec<PrescribingInfoProperty>;
fn get_prescription_status(&self) -> &[PrescriptionStatusProperty];
fn take_prescription_status(&mut self) -> Vec<PrescriptionStatusProperty>;
fn get_proprietary_name(&self) -> &[ProprietaryNameProperty];
fn take_proprietary_name(&mut self) -> Vec<ProprietaryNameProperty>;
fn get_related_drug(&self) -> &[RelatedDrugProperty];
fn take_related_drug(&mut self) -> Vec<RelatedDrugProperty>;
fn get_rxcui(&self) -> &[RxcuiProperty];
fn take_rxcui(&mut self) -> Vec<RxcuiProperty>;
fn get_warning(&self) -> &[WarningProperty];
fn take_warning(&mut self) -> Vec<WarningProperty>;
}
Expand description
This trait is for properties from https://schema.org/Drug.
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_administration_route(&self) -> &[AdministrationRouteProperty]
fn get_administration_route(&self) -> &[AdministrationRouteProperty]
Get https://schema.org/administrationRoute from Self
as borrowed slice.
sourcefn take_administration_route(&mut self) -> Vec<AdministrationRouteProperty>
fn take_administration_route(&mut self) -> Vec<AdministrationRouteProperty>
Take https://schema.org/administrationRoute from Self
as owned vector.
sourcefn get_alcohol_warning(&self) -> &[AlcoholWarningProperty]
fn get_alcohol_warning(&self) -> &[AlcoholWarningProperty]
Get https://schema.org/alcoholWarning from Self
as borrowed slice.
sourcefn take_alcohol_warning(&mut self) -> Vec<AlcoholWarningProperty>
fn take_alcohol_warning(&mut self) -> Vec<AlcoholWarningProperty>
Take https://schema.org/alcoholWarning from Self
as owned vector.
sourcefn get_available_strength(&self) -> &[AvailableStrengthProperty]
fn get_available_strength(&self) -> &[AvailableStrengthProperty]
Get https://schema.org/availableStrength from Self
as borrowed slice.
sourcefn take_available_strength(&mut self) -> Vec<AvailableStrengthProperty>
fn take_available_strength(&mut self) -> Vec<AvailableStrengthProperty>
Take https://schema.org/availableStrength from Self
as owned vector.
sourcefn get_breastfeeding_warning(&self) -> &[BreastfeedingWarningProperty]
fn get_breastfeeding_warning(&self) -> &[BreastfeedingWarningProperty]
Get https://schema.org/breastfeedingWarning from Self
as borrowed slice.
sourcefn take_breastfeeding_warning(&mut self) -> Vec<BreastfeedingWarningProperty>
fn take_breastfeeding_warning(&mut self) -> Vec<BreastfeedingWarningProperty>
Take https://schema.org/breastfeedingWarning from Self
as owned vector.
sourcefn get_clincal_pharmacology(&self) -> &[ClincalPharmacologyProperty]
fn get_clincal_pharmacology(&self) -> &[ClincalPharmacologyProperty]
Get https://schema.org/clincalPharmacology from Self
as borrowed slice.
sourcefn take_clincal_pharmacology(&mut self) -> Vec<ClincalPharmacologyProperty>
fn take_clincal_pharmacology(&mut self) -> Vec<ClincalPharmacologyProperty>
Take https://schema.org/clincalPharmacology from Self
as owned vector.
sourcefn get_clinical_pharmacology(&self) -> &[ClinicalPharmacologyProperty]
fn get_clinical_pharmacology(&self) -> &[ClinicalPharmacologyProperty]
Get https://schema.org/clinicalPharmacology from Self
as borrowed slice.
sourcefn take_clinical_pharmacology(&mut self) -> Vec<ClinicalPharmacologyProperty>
fn take_clinical_pharmacology(&mut self) -> Vec<ClinicalPharmacologyProperty>
Take https://schema.org/clinicalPharmacology from Self
as owned vector.
sourcefn get_dosage_form(&self) -> &[DosageFormProperty]
fn get_dosage_form(&self) -> &[DosageFormProperty]
Get https://schema.org/dosageForm from Self
as borrowed slice.
sourcefn take_dosage_form(&mut self) -> Vec<DosageFormProperty>
fn take_dosage_form(&mut self) -> Vec<DosageFormProperty>
Take https://schema.org/dosageForm from Self
as owned vector.
sourcefn get_dose_schedule(&self) -> &[DoseScheduleProperty]
fn get_dose_schedule(&self) -> &[DoseScheduleProperty]
Get https://schema.org/doseSchedule from Self
as borrowed slice.
sourcefn take_dose_schedule(&mut self) -> Vec<DoseScheduleProperty>
fn take_dose_schedule(&mut self) -> Vec<DoseScheduleProperty>
Take https://schema.org/doseSchedule from Self
as owned vector.
sourcefn get_drug_class(&self) -> &[DrugClassProperty]
fn get_drug_class(&self) -> &[DrugClassProperty]
Get https://schema.org/drugClass from Self
as borrowed slice.
sourcefn take_drug_class(&mut self) -> Vec<DrugClassProperty>
fn take_drug_class(&mut self) -> Vec<DrugClassProperty>
Take https://schema.org/drugClass from Self
as owned vector.
sourcefn get_drug_unit(&self) -> &[DrugUnitProperty]
fn get_drug_unit(&self) -> &[DrugUnitProperty]
Get https://schema.org/drugUnit from Self
as borrowed slice.
sourcefn take_drug_unit(&mut self) -> Vec<DrugUnitProperty>
fn take_drug_unit(&mut self) -> Vec<DrugUnitProperty>
Take https://schema.org/drugUnit from Self
as owned vector.
sourcefn get_food_warning(&self) -> &[FoodWarningProperty]
fn get_food_warning(&self) -> &[FoodWarningProperty]
Get https://schema.org/foodWarning from Self
as borrowed slice.
sourcefn take_food_warning(&mut self) -> Vec<FoodWarningProperty>
fn take_food_warning(&mut self) -> Vec<FoodWarningProperty>
Take https://schema.org/foodWarning from Self
as owned vector.
sourcefn get_included_in_health_insurance_plan(
&self
) -> &[IncludedInHealthInsurancePlanProperty]
fn get_included_in_health_insurance_plan( &self ) -> &[IncludedInHealthInsurancePlanProperty]
Get https://schema.org/includedInHealthInsurancePlan from Self
as borrowed slice.
sourcefn take_included_in_health_insurance_plan(
&mut self
) -> Vec<IncludedInHealthInsurancePlanProperty>
fn take_included_in_health_insurance_plan( &mut self ) -> Vec<IncludedInHealthInsurancePlanProperty>
Take https://schema.org/includedInHealthInsurancePlan from Self
as owned vector.
sourcefn get_interacting_drug(&self) -> &[InteractingDrugProperty]
fn get_interacting_drug(&self) -> &[InteractingDrugProperty]
Get https://schema.org/interactingDrug from Self
as borrowed slice.
sourcefn take_interacting_drug(&mut self) -> Vec<InteractingDrugProperty>
fn take_interacting_drug(&mut self) -> Vec<InteractingDrugProperty>
Take https://schema.org/interactingDrug from Self
as owned vector.
sourcefn get_is_available_generically(&self) -> &[IsAvailableGenericallyProperty]
fn get_is_available_generically(&self) -> &[IsAvailableGenericallyProperty]
Get https://schema.org/isAvailableGenerically from Self
as borrowed slice.
sourcefn take_is_available_generically(
&mut self
) -> Vec<IsAvailableGenericallyProperty>
fn take_is_available_generically( &mut self ) -> Vec<IsAvailableGenericallyProperty>
Take https://schema.org/isAvailableGenerically from Self
as owned vector.
sourcefn get_is_proprietary(&self) -> &[IsProprietaryProperty]
fn get_is_proprietary(&self) -> &[IsProprietaryProperty]
Get https://schema.org/isProprietary from Self
as borrowed slice.
sourcefn take_is_proprietary(&mut self) -> Vec<IsProprietaryProperty>
fn take_is_proprietary(&mut self) -> Vec<IsProprietaryProperty>
Take https://schema.org/isProprietary from Self
as owned vector.
sourcefn get_label_details(&self) -> &[LabelDetailsProperty]
fn get_label_details(&self) -> &[LabelDetailsProperty]
Get https://schema.org/labelDetails from Self
as borrowed slice.
sourcefn take_label_details(&mut self) -> Vec<LabelDetailsProperty>
fn take_label_details(&mut self) -> Vec<LabelDetailsProperty>
Take https://schema.org/labelDetails from Self
as owned vector.
sourcefn get_legal_status(&self) -> &[LegalStatusProperty]
fn get_legal_status(&self) -> &[LegalStatusProperty]
Get https://schema.org/legalStatus from Self
as borrowed slice.
sourcefn take_legal_status(&mut self) -> Vec<LegalStatusProperty>
fn take_legal_status(&mut self) -> Vec<LegalStatusProperty>
Take https://schema.org/legalStatus 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_mechanism_of_action(&self) -> &[MechanismOfActionProperty]
fn get_mechanism_of_action(&self) -> &[MechanismOfActionProperty]
Get https://schema.org/mechanismOfAction from Self
as borrowed slice.
sourcefn take_mechanism_of_action(&mut self) -> Vec<MechanismOfActionProperty>
fn take_mechanism_of_action(&mut self) -> Vec<MechanismOfActionProperty>
Take https://schema.org/mechanismOfAction from Self
as owned vector.
sourcefn get_non_proprietary_name(&self) -> &[NonProprietaryNameProperty]
fn get_non_proprietary_name(&self) -> &[NonProprietaryNameProperty]
Get https://schema.org/nonProprietaryName from Self
as borrowed slice.
sourcefn take_non_proprietary_name(&mut self) -> Vec<NonProprietaryNameProperty>
fn take_non_proprietary_name(&mut self) -> Vec<NonProprietaryNameProperty>
Take https://schema.org/nonProprietaryName from Self
as owned vector.
sourcefn get_overdosage(&self) -> &[OverdosageProperty]
fn get_overdosage(&self) -> &[OverdosageProperty]
Get https://schema.org/overdosage from Self
as borrowed slice.
sourcefn take_overdosage(&mut self) -> Vec<OverdosageProperty>
fn take_overdosage(&mut self) -> Vec<OverdosageProperty>
Take https://schema.org/overdosage from Self
as owned vector.
sourcefn get_pregnancy_category(&self) -> &[PregnancyCategoryProperty]
fn get_pregnancy_category(&self) -> &[PregnancyCategoryProperty]
Get https://schema.org/pregnancyCategory from Self
as borrowed slice.
sourcefn take_pregnancy_category(&mut self) -> Vec<PregnancyCategoryProperty>
fn take_pregnancy_category(&mut self) -> Vec<PregnancyCategoryProperty>
Take https://schema.org/pregnancyCategory from Self
as owned vector.
sourcefn get_pregnancy_warning(&self) -> &[PregnancyWarningProperty]
fn get_pregnancy_warning(&self) -> &[PregnancyWarningProperty]
Get https://schema.org/pregnancyWarning from Self
as borrowed slice.
sourcefn take_pregnancy_warning(&mut self) -> Vec<PregnancyWarningProperty>
fn take_pregnancy_warning(&mut self) -> Vec<PregnancyWarningProperty>
Take https://schema.org/pregnancyWarning from Self
as owned vector.
sourcefn get_prescribing_info(&self) -> &[PrescribingInfoProperty]
fn get_prescribing_info(&self) -> &[PrescribingInfoProperty]
Get https://schema.org/prescribingInfo from Self
as borrowed slice.
sourcefn take_prescribing_info(&mut self) -> Vec<PrescribingInfoProperty>
fn take_prescribing_info(&mut self) -> Vec<PrescribingInfoProperty>
Take https://schema.org/prescribingInfo from Self
as owned vector.
sourcefn get_prescription_status(&self) -> &[PrescriptionStatusProperty]
fn get_prescription_status(&self) -> &[PrescriptionStatusProperty]
Get https://schema.org/prescriptionStatus from Self
as borrowed slice.
sourcefn take_prescription_status(&mut self) -> Vec<PrescriptionStatusProperty>
fn take_prescription_status(&mut self) -> Vec<PrescriptionStatusProperty>
Take https://schema.org/prescriptionStatus from Self
as owned vector.
sourcefn get_proprietary_name(&self) -> &[ProprietaryNameProperty]
fn get_proprietary_name(&self) -> &[ProprietaryNameProperty]
Get https://schema.org/proprietaryName from Self
as borrowed slice.
sourcefn take_proprietary_name(&mut self) -> Vec<ProprietaryNameProperty>
fn take_proprietary_name(&mut self) -> Vec<ProprietaryNameProperty>
Take https://schema.org/proprietaryName from Self
as owned vector.
Get https://schema.org/relatedDrug from Self
as borrowed slice.
Take https://schema.org/relatedDrug from Self
as owned vector.
sourcefn get_rxcui(&self) -> &[RxcuiProperty]
fn get_rxcui(&self) -> &[RxcuiProperty]
Get https://schema.org/rxcui from Self
as borrowed slice.
sourcefn take_rxcui(&mut self) -> Vec<RxcuiProperty>
fn take_rxcui(&mut self) -> Vec<RxcuiProperty>
Take https://schema.org/rxcui from Self
as owned vector.
sourcefn get_warning(&self) -> &[WarningProperty]
fn get_warning(&self) -> &[WarningProperty]
Get https://schema.org/warning from Self
as borrowed slice.
sourcefn take_warning(&mut self) -> Vec<WarningProperty>
fn take_warning(&mut self) -> Vec<WarningProperty>
Take https://schema.org/warning from Self
as owned vector.