pub trait MedicalTherapyTrait {
// Required methods
fn get_contraindication(&self) -> &[ContraindicationProperty];
fn take_contraindication(&mut self) -> Vec<ContraindicationProperty>;
fn get_duplicate_therapy(&self) -> &[DuplicateTherapyProperty];
fn take_duplicate_therapy(&mut self) -> Vec<DuplicateTherapyProperty>;
fn get_serious_adverse_outcome(&self) -> &[SeriousAdverseOutcomeProperty];
fn take_serious_adverse_outcome(
&mut self
) -> Vec<SeriousAdverseOutcomeProperty>;
}
Expand description
This trait is for properties from https://schema.org/MedicalTherapy.
Required Methods§
sourcefn get_contraindication(&self) -> &[ContraindicationProperty]
fn get_contraindication(&self) -> &[ContraindicationProperty]
Get https://schema.org/contraindication from Self
as borrowed slice.
sourcefn take_contraindication(&mut self) -> Vec<ContraindicationProperty>
fn take_contraindication(&mut self) -> Vec<ContraindicationProperty>
Take https://schema.org/contraindication from Self
as owned vector.
sourcefn get_duplicate_therapy(&self) -> &[DuplicateTherapyProperty]
fn get_duplicate_therapy(&self) -> &[DuplicateTherapyProperty]
Get https://schema.org/duplicateTherapy from Self
as borrowed slice.
sourcefn take_duplicate_therapy(&mut self) -> Vec<DuplicateTherapyProperty>
fn take_duplicate_therapy(&mut self) -> Vec<DuplicateTherapyProperty>
Take https://schema.org/duplicateTherapy from Self
as owned vector.
sourcefn get_serious_adverse_outcome(&self) -> &[SeriousAdverseOutcomeProperty]
fn get_serious_adverse_outcome(&self) -> &[SeriousAdverseOutcomeProperty]
Get https://schema.org/seriousAdverseOutcome from Self
as borrowed slice.
sourcefn take_serious_adverse_outcome(&mut self) -> Vec<SeriousAdverseOutcomeProperty>
fn take_serious_adverse_outcome(&mut self) -> Vec<SeriousAdverseOutcomeProperty>
Take https://schema.org/seriousAdverseOutcome from Self
as owned vector.