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§

source

fn get_active_ingredient(&self) -> &[ActiveIngredientProperty]

Get https://schema.org/activeIngredient from Self as borrowed slice.

source

fn take_active_ingredient(&mut self) -> Vec<ActiveIngredientProperty>

Take https://schema.org/activeIngredient from Self as owned vector.

source

fn get_administration_route(&self) -> &[AdministrationRouteProperty]

Get https://schema.org/administrationRoute from Self as borrowed slice.

source

fn take_administration_route(&mut self) -> Vec<AdministrationRouteProperty>

Take https://schema.org/administrationRoute from Self as owned vector.

source

fn get_alcohol_warning(&self) -> &[AlcoholWarningProperty]

Get https://schema.org/alcoholWarning from Self as borrowed slice.

source

fn take_alcohol_warning(&mut self) -> Vec<AlcoholWarningProperty>

Take https://schema.org/alcoholWarning from Self as owned vector.

source

fn get_available_strength(&self) -> &[AvailableStrengthProperty]

Get https://schema.org/availableStrength from Self as borrowed slice.

source

fn take_available_strength(&mut self) -> Vec<AvailableStrengthProperty>

Take https://schema.org/availableStrength from Self as owned vector.

source

fn get_breastfeeding_warning(&self) -> &[BreastfeedingWarningProperty]

Get https://schema.org/breastfeedingWarning from Self as borrowed slice.

source

fn take_breastfeeding_warning(&mut self) -> Vec<BreastfeedingWarningProperty>

Take https://schema.org/breastfeedingWarning from Self as owned vector.

source

fn get_clincal_pharmacology(&self) -> &[ClincalPharmacologyProperty]

👎Deprecated: This schema is superseded by https://schema.org/clinicalPharmacology.

Get https://schema.org/clincalPharmacology from Self as borrowed slice.

source

fn take_clincal_pharmacology(&mut self) -> Vec<ClincalPharmacologyProperty>

👎Deprecated: This schema is superseded by https://schema.org/clinicalPharmacology.

Take https://schema.org/clincalPharmacology from Self as owned vector.

source

fn get_clinical_pharmacology(&self) -> &[ClinicalPharmacologyProperty]

Get https://schema.org/clinicalPharmacology from Self as borrowed slice.

source

fn take_clinical_pharmacology(&mut self) -> Vec<ClinicalPharmacologyProperty>

Take https://schema.org/clinicalPharmacology from Self as owned vector.

source

fn get_dosage_form(&self) -> &[DosageFormProperty]

Get https://schema.org/dosageForm from Self as borrowed slice.

source

fn take_dosage_form(&mut self) -> Vec<DosageFormProperty>

Take https://schema.org/dosageForm from Self as owned vector.

source

fn get_dose_schedule(&self) -> &[DoseScheduleProperty]

Get https://schema.org/doseSchedule from Self as borrowed slice.

source

fn take_dose_schedule(&mut self) -> Vec<DoseScheduleProperty>

Take https://schema.org/doseSchedule from Self as owned vector.

source

fn get_drug_class(&self) -> &[DrugClassProperty]

Get https://schema.org/drugClass from Self as borrowed slice.

source

fn take_drug_class(&mut self) -> Vec<DrugClassProperty>

Take https://schema.org/drugClass from Self as owned vector.

source

fn get_drug_unit(&self) -> &[DrugUnitProperty]

Get https://schema.org/drugUnit from Self as borrowed slice.

source

fn take_drug_unit(&mut self) -> Vec<DrugUnitProperty>

Take https://schema.org/drugUnit from Self as owned vector.

source

fn get_food_warning(&self) -> &[FoodWarningProperty]

Get https://schema.org/foodWarning from Self as borrowed slice.

source

fn take_food_warning(&mut self) -> Vec<FoodWarningProperty>

Take https://schema.org/foodWarning from Self as owned vector.

source

fn get_included_in_health_insurance_plan( &self ) -> &[IncludedInHealthInsurancePlanProperty]

source

fn take_included_in_health_insurance_plan( &mut self ) -> Vec<IncludedInHealthInsurancePlanProperty>

source

fn get_interacting_drug(&self) -> &[InteractingDrugProperty]

Get https://schema.org/interactingDrug from Self as borrowed slice.

source

fn take_interacting_drug(&mut self) -> Vec<InteractingDrugProperty>

Take https://schema.org/interactingDrug from Self as owned vector.

source

fn get_is_available_generically(&self) -> &[IsAvailableGenericallyProperty]

Get https://schema.org/isAvailableGenerically from Self as borrowed slice.

source

fn take_is_available_generically( &mut self ) -> Vec<IsAvailableGenericallyProperty>

source

fn get_is_proprietary(&self) -> &[IsProprietaryProperty]

Get https://schema.org/isProprietary from Self as borrowed slice.

source

fn take_is_proprietary(&mut self) -> Vec<IsProprietaryProperty>

Take https://schema.org/isProprietary from Self as owned vector.

source

fn get_label_details(&self) -> &[LabelDetailsProperty]

Get https://schema.org/labelDetails from Self as borrowed slice.

source

fn take_label_details(&mut self) -> Vec<LabelDetailsProperty>

Take https://schema.org/labelDetails from Self as owned vector.

Get https://schema.org/legalStatus from Self as borrowed slice.

Take https://schema.org/legalStatus from Self as owned vector.

source

fn get_maximum_intake(&self) -> &[MaximumIntakeProperty]

Get https://schema.org/maximumIntake from Self as borrowed slice.

source

fn take_maximum_intake(&mut self) -> Vec<MaximumIntakeProperty>

Take https://schema.org/maximumIntake from Self as owned vector.

source

fn get_mechanism_of_action(&self) -> &[MechanismOfActionProperty]

Get https://schema.org/mechanismOfAction from Self as borrowed slice.

source

fn take_mechanism_of_action(&mut self) -> Vec<MechanismOfActionProperty>

Take https://schema.org/mechanismOfAction from Self as owned vector.

source

fn get_non_proprietary_name(&self) -> &[NonProprietaryNameProperty]

Get https://schema.org/nonProprietaryName from Self as borrowed slice.

source

fn take_non_proprietary_name(&mut self) -> Vec<NonProprietaryNameProperty>

Take https://schema.org/nonProprietaryName from Self as owned vector.

source

fn get_overdosage(&self) -> &[OverdosageProperty]

Get https://schema.org/overdosage from Self as borrowed slice.

source

fn take_overdosage(&mut self) -> Vec<OverdosageProperty>

Take https://schema.org/overdosage from Self as owned vector.

source

fn get_pregnancy_category(&self) -> &[PregnancyCategoryProperty]

Get https://schema.org/pregnancyCategory from Self as borrowed slice.

source

fn take_pregnancy_category(&mut self) -> Vec<PregnancyCategoryProperty>

Take https://schema.org/pregnancyCategory from Self as owned vector.

source

fn get_pregnancy_warning(&self) -> &[PregnancyWarningProperty]

Get https://schema.org/pregnancyWarning from Self as borrowed slice.

source

fn take_pregnancy_warning(&mut self) -> Vec<PregnancyWarningProperty>

Take https://schema.org/pregnancyWarning from Self as owned vector.

source

fn get_prescribing_info(&self) -> &[PrescribingInfoProperty]

Get https://schema.org/prescribingInfo from Self as borrowed slice.

source

fn take_prescribing_info(&mut self) -> Vec<PrescribingInfoProperty>

Take https://schema.org/prescribingInfo from Self as owned vector.

source

fn get_prescription_status(&self) -> &[PrescriptionStatusProperty]

Get https://schema.org/prescriptionStatus from Self as borrowed slice.

source

fn take_prescription_status(&mut self) -> Vec<PrescriptionStatusProperty>

Take https://schema.org/prescriptionStatus from Self as owned vector.

source

fn get_proprietary_name(&self) -> &[ProprietaryNameProperty]

Get https://schema.org/proprietaryName from Self as borrowed slice.

source

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.

source

fn get_rxcui(&self) -> &[RxcuiProperty]

Get https://schema.org/rxcui from Self as borrowed slice.

source

fn take_rxcui(&mut self) -> Vec<RxcuiProperty>

Take https://schema.org/rxcui from Self as owned vector.

source

fn get_warning(&self) -> &[WarningProperty]

Get https://schema.org/warning from Self as borrowed slice.

source

fn take_warning(&mut self) -> Vec<WarningProperty>

Take https://schema.org/warning from Self as owned vector.

Implementors§