Trait schema_org_types::TaxonTrait
source · pub trait TaxonTrait {
// Required methods
fn get_child_taxon(&self) -> &[ChildTaxonProperty];
fn take_child_taxon(&mut self) -> Vec<ChildTaxonProperty>;
fn get_has_defined_term(&self) -> &[HasDefinedTermProperty];
fn take_has_defined_term(&mut self) -> Vec<HasDefinedTermProperty>;
fn get_parent_taxon(&self) -> &[ParentTaxonProperty];
fn take_parent_taxon(&mut self) -> Vec<ParentTaxonProperty>;
fn get_taxon_rank(&self) -> &[TaxonRankProperty];
fn take_taxon_rank(&mut self) -> Vec<TaxonRankProperty>;
}
Expand description
This trait is for properties from https://schema.org/Taxon.
Required Methods§
sourcefn get_child_taxon(&self) -> &[ChildTaxonProperty]
fn get_child_taxon(&self) -> &[ChildTaxonProperty]
Get https://schema.org/childTaxon from Self
as borrowed slice.
sourcefn take_child_taxon(&mut self) -> Vec<ChildTaxonProperty>
fn take_child_taxon(&mut self) -> Vec<ChildTaxonProperty>
Take https://schema.org/childTaxon from Self
as owned vector.
sourcefn get_has_defined_term(&self) -> &[HasDefinedTermProperty]
fn get_has_defined_term(&self) -> &[HasDefinedTermProperty]
Get https://schema.org/hasDefinedTerm from Self
as borrowed slice.
sourcefn take_has_defined_term(&mut self) -> Vec<HasDefinedTermProperty>
fn take_has_defined_term(&mut self) -> Vec<HasDefinedTermProperty>
Take https://schema.org/hasDefinedTerm from Self
as owned vector.
sourcefn get_parent_taxon(&self) -> &[ParentTaxonProperty]
fn get_parent_taxon(&self) -> &[ParentTaxonProperty]
Get https://schema.org/parentTaxon from Self
as borrowed slice.
sourcefn take_parent_taxon(&mut self) -> Vec<ParentTaxonProperty>
fn take_parent_taxon(&mut self) -> Vec<ParentTaxonProperty>
Take https://schema.org/parentTaxon from Self
as owned vector.
sourcefn get_taxon_rank(&self) -> &[TaxonRankProperty]
fn get_taxon_rank(&self) -> &[TaxonRankProperty]
Get https://schema.org/taxonRank from Self
as borrowed slice.
sourcefn take_taxon_rank(&mut self) -> Vec<TaxonRankProperty>
fn take_taxon_rank(&mut self) -> Vec<TaxonRankProperty>
Take https://schema.org/taxonRank from Self
as owned vector.