Struct schema_org_types::Substance
source · pub struct Substance {Show 22 fields
pub active_ingredient: Vec<ActiveIngredientProperty>,
pub maximum_intake: Vec<MaximumIntakeProperty>,
pub code: Vec<CodeProperty>,
pub funding: Vec<FundingProperty>,
pub guideline: Vec<GuidelineProperty>,
pub legal_status: Vec<LegalStatusProperty>,
pub medicine_system: Vec<MedicineSystemProperty>,
pub recognizing_authority: Vec<RecognizingAuthorityProperty>,
pub relevant_specialty: Vec<RelevantSpecialtyProperty>,
pub study: Vec<StudyProperty>,
pub additional_type: Vec<AdditionalTypeProperty>,
pub alternate_name: Vec<AlternateNameProperty>,
pub description: Vec<DescriptionProperty>,
pub disambiguating_description: Vec<DisambiguatingDescriptionProperty>,
pub identifier: Vec<IdentifierProperty>,
pub image: Vec<ImageProperty>,
pub main_entity_of_page: Vec<MainEntityOfPageProperty>,
pub name: Vec<NameProperty>,
pub potential_action: Vec<PotentialActionProperty>,
pub same_as: Vec<SameAsProperty>,
pub subject_of: Vec<SubjectOfProperty>,
pub url: Vec<UrlProperty>,
}
Expand description
Fields§
§active_ingredient: Vec<ActiveIngredientProperty>
§maximum_intake: Vec<MaximumIntakeProperty>
§code: Vec<CodeProperty>
§funding: Vec<FundingProperty>
§guideline: Vec<GuidelineProperty>
§legal_status: Vec<LegalStatusProperty>
§medicine_system: Vec<MedicineSystemProperty>
§relevant_specialty: Vec<RelevantSpecialtyProperty>
§study: Vec<StudyProperty>
§additional_type: Vec<AdditionalTypeProperty>
§alternate_name: Vec<AlternateNameProperty>
§description: Vec<DescriptionProperty>
§disambiguating_description: Vec<DisambiguatingDescriptionProperty>
§identifier: Vec<IdentifierProperty>
§image: Vec<ImageProperty>
§main_entity_of_page: Vec<MainEntityOfPageProperty>
§name: Vec<NameProperty>
§potential_action: Vec<PotentialActionProperty>
§same_as: Vec<SameAsProperty>
§subject_of: Vec<SubjectOfProperty>
§url: Vec<UrlProperty>
Trait Implementations§
source§impl MedicalEntityTrait for Substance
impl MedicalEntityTrait for Substance
source§fn get_code(&self) -> &[CodeProperty]
fn get_code(&self) -> &[CodeProperty]
Get https://schema.org/code from
Self
as borrowed slice.source§fn take_code(&mut self) -> Vec<CodeProperty>
fn take_code(&mut self) -> Vec<CodeProperty>
Take https://schema.org/code from
Self
as owned vector.source§fn get_funding(&self) -> &[FundingProperty]
fn get_funding(&self) -> &[FundingProperty]
Get https://schema.org/funding from
Self
as borrowed slice.source§fn take_funding(&mut self) -> Vec<FundingProperty>
fn take_funding(&mut self) -> Vec<FundingProperty>
Take https://schema.org/funding from
Self
as owned vector.source§fn get_guideline(&self) -> &[GuidelineProperty]
fn get_guideline(&self) -> &[GuidelineProperty]
Get https://schema.org/guideline from
Self
as borrowed slice.source§fn take_guideline(&mut self) -> Vec<GuidelineProperty>
fn take_guideline(&mut self) -> Vec<GuidelineProperty>
Take https://schema.org/guideline from
Self
as owned vector.source§fn get_legal_status(&self) -> &[LegalStatusProperty]
fn get_legal_status(&self) -> &[LegalStatusProperty]
Get https://schema.org/legalStatus from
Self
as borrowed slice.source§fn 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.source§fn get_medicine_system(&self) -> &[MedicineSystemProperty]
fn get_medicine_system(&self) -> &[MedicineSystemProperty]
Get https://schema.org/medicineSystem from
Self
as borrowed slice.source§fn take_medicine_system(&mut self) -> Vec<MedicineSystemProperty>
fn take_medicine_system(&mut self) -> Vec<MedicineSystemProperty>
Take https://schema.org/medicineSystem from
Self
as owned vector.Get https://schema.org/recognizingAuthority from
Self
as borrowed slice.Take https://schema.org/recognizingAuthority from
Self
as owned vector.source§fn get_relevant_specialty(&self) -> &[RelevantSpecialtyProperty]
fn get_relevant_specialty(&self) -> &[RelevantSpecialtyProperty]
Get https://schema.org/relevantSpecialty from
Self
as borrowed slice.source§fn take_relevant_specialty(&mut self) -> Vec<RelevantSpecialtyProperty>
fn take_relevant_specialty(&mut self) -> Vec<RelevantSpecialtyProperty>
Take https://schema.org/relevantSpecialty from
Self
as owned vector.source§fn get_study(&self) -> &[StudyProperty]
fn get_study(&self) -> &[StudyProperty]
Get https://schema.org/study from
Self
as borrowed slice.source§fn take_study(&mut self) -> Vec<StudyProperty>
fn take_study(&mut self) -> Vec<StudyProperty>
Take https://schema.org/study from
Self
as owned vector.source§impl SubstanceTrait for Substance
impl SubstanceTrait for Substance
source§fn get_active_ingredient(&self) -> &[ActiveIngredientProperty]
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>
fn take_active_ingredient(&mut self) -> Vec<ActiveIngredientProperty>
Take https://schema.org/activeIngredient from
Self
as owned vector.source§fn get_maximum_intake(&self) -> &[MaximumIntakeProperty]
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>
fn take_maximum_intake(&mut self) -> Vec<MaximumIntakeProperty>
Take https://schema.org/maximumIntake from
Self
as owned vector.source§impl ThingTrait for Substance
impl ThingTrait for Substance
source§fn get_additional_type(&self) -> &[AdditionalTypeProperty]
fn get_additional_type(&self) -> &[AdditionalTypeProperty]
Get https://schema.org/additionalType from
Self
as borrowed slice.source§fn take_additional_type(&mut self) -> Vec<AdditionalTypeProperty>
fn take_additional_type(&mut self) -> Vec<AdditionalTypeProperty>
Take https://schema.org/additionalType from
Self
as owned vector.source§fn get_alternate_name(&self) -> &[AlternateNameProperty]
fn get_alternate_name(&self) -> &[AlternateNameProperty]
Get https://schema.org/alternateName from
Self
as borrowed slice.source§fn take_alternate_name(&mut self) -> Vec<AlternateNameProperty>
fn take_alternate_name(&mut self) -> Vec<AlternateNameProperty>
Take https://schema.org/alternateName from
Self
as owned vector.source§fn get_description(&self) -> &[DescriptionProperty]
fn get_description(&self) -> &[DescriptionProperty]
Get https://schema.org/description from
Self
as borrowed slice.source§fn take_description(&mut self) -> Vec<DescriptionProperty>
fn take_description(&mut self) -> Vec<DescriptionProperty>
Take https://schema.org/description from
Self
as owned vector.source§fn get_disambiguating_description(&self) -> &[DisambiguatingDescriptionProperty]
fn get_disambiguating_description(&self) -> &[DisambiguatingDescriptionProperty]
Get https://schema.org/disambiguatingDescription from
Self
as borrowed slice.source§fn take_disambiguating_description(
&mut self
) -> Vec<DisambiguatingDescriptionProperty>
fn take_disambiguating_description( &mut self ) -> Vec<DisambiguatingDescriptionProperty>
Take https://schema.org/disambiguatingDescription from
Self
as owned vector.source§fn get_identifier(&self) -> &[IdentifierProperty]
fn get_identifier(&self) -> &[IdentifierProperty]
Get https://schema.org/identifier from
Self
as borrowed slice.source§fn take_identifier(&mut self) -> Vec<IdentifierProperty>
fn take_identifier(&mut self) -> Vec<IdentifierProperty>
Take https://schema.org/identifier from
Self
as owned vector.source§fn get_image(&self) -> &[ImageProperty]
fn get_image(&self) -> &[ImageProperty]
Get https://schema.org/image from
Self
as borrowed slice.source§fn take_image(&mut self) -> Vec<ImageProperty>
fn take_image(&mut self) -> Vec<ImageProperty>
Take https://schema.org/image from
Self
as owned vector.source§fn get_main_entity_of_page(&self) -> &[MainEntityOfPageProperty]
fn get_main_entity_of_page(&self) -> &[MainEntityOfPageProperty]
Get https://schema.org/mainEntityOfPage from
Self
as borrowed slice.source§fn take_main_entity_of_page(&mut self) -> Vec<MainEntityOfPageProperty>
fn take_main_entity_of_page(&mut self) -> Vec<MainEntityOfPageProperty>
Take https://schema.org/mainEntityOfPage from
Self
as owned vector.source§fn get_name(&self) -> &[NameProperty]
fn get_name(&self) -> &[NameProperty]
Get https://schema.org/name from
Self
as borrowed slice.source§fn take_name(&mut self) -> Vec<NameProperty>
fn take_name(&mut self) -> Vec<NameProperty>
Take https://schema.org/name from
Self
as owned vector.source§fn get_potential_action(&self) -> &[PotentialActionProperty]
fn get_potential_action(&self) -> &[PotentialActionProperty]
Get https://schema.org/potentialAction from
Self
as borrowed slice.source§fn take_potential_action(&mut self) -> Vec<PotentialActionProperty>
fn take_potential_action(&mut self) -> Vec<PotentialActionProperty>
Take https://schema.org/potentialAction from
Self
as owned vector.source§fn get_same_as(&self) -> &[SameAsProperty]
fn get_same_as(&self) -> &[SameAsProperty]
Get https://schema.org/sameAs from
Self
as borrowed slice.source§fn take_same_as(&mut self) -> Vec<SameAsProperty>
fn take_same_as(&mut self) -> Vec<SameAsProperty>
Take https://schema.org/sameAs from
Self
as owned vector.source§fn get_subject_of(&self) -> &[SubjectOfProperty]
fn get_subject_of(&self) -> &[SubjectOfProperty]
Get https://schema.org/subjectOf from
Self
as borrowed slice.source§fn take_subject_of(&mut self) -> Vec<SubjectOfProperty>
fn take_subject_of(&mut self) -> Vec<SubjectOfProperty>
Take https://schema.org/subjectOf from
Self
as owned vector.source§fn get_url(&self) -> &[UrlProperty]
fn get_url(&self) -> &[UrlProperty]
Get https://schema.org/url from
Self
as borrowed slice.source§fn take_url(&mut self) -> Vec<UrlProperty>
fn take_url(&mut self) -> Vec<UrlProperty>
Take https://schema.org/url from
Self
as owned vector.Auto Trait Implementations§
impl RefUnwindSafe for Substance
impl Send for Substance
impl Sync for Substance
impl Unpin for Substance
impl UnwindSafe for Substance
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more