Trait schema_org_types::ThingTrait
source · pub trait ThingTrait {
Show 24 methods
// Required methods
fn get_additional_type(&self) -> &[AdditionalTypeProperty];
fn take_additional_type(&mut self) -> Vec<AdditionalTypeProperty>;
fn get_alternate_name(&self) -> &[AlternateNameProperty];
fn take_alternate_name(&mut self) -> Vec<AlternateNameProperty>;
fn get_description(&self) -> &[DescriptionProperty];
fn take_description(&mut self) -> Vec<DescriptionProperty>;
fn get_disambiguating_description(
&self
) -> &[DisambiguatingDescriptionProperty];
fn take_disambiguating_description(
&mut self
) -> Vec<DisambiguatingDescriptionProperty>;
fn get_identifier(&self) -> &[IdentifierProperty];
fn take_identifier(&mut self) -> Vec<IdentifierProperty>;
fn get_image(&self) -> &[ImageProperty];
fn take_image(&mut self) -> Vec<ImageProperty>;
fn get_main_entity_of_page(&self) -> &[MainEntityOfPageProperty];
fn take_main_entity_of_page(&mut self) -> Vec<MainEntityOfPageProperty>;
fn get_name(&self) -> &[NameProperty];
fn take_name(&mut self) -> Vec<NameProperty>;
fn get_potential_action(&self) -> &[PotentialActionProperty];
fn take_potential_action(&mut self) -> Vec<PotentialActionProperty>;
fn get_same_as(&self) -> &[SameAsProperty];
fn take_same_as(&mut self) -> Vec<SameAsProperty>;
fn get_subject_of(&self) -> &[SubjectOfProperty];
fn take_subject_of(&mut self) -> Vec<SubjectOfProperty>;
fn get_url(&self) -> &[UrlProperty];
fn take_url(&mut self) -> Vec<UrlProperty>;
}
Expand description
This trait is for properties from https://schema.org/Thing.
Required Methods§
sourcefn get_additional_type(&self) -> &[AdditionalTypeProperty]
fn get_additional_type(&self) -> &[AdditionalTypeProperty]
Get https://schema.org/additionalType from Self
as borrowed slice.
sourcefn 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.
sourcefn get_alternate_name(&self) -> &[AlternateNameProperty]
fn get_alternate_name(&self) -> &[AlternateNameProperty]
Get https://schema.org/alternateName from Self
as borrowed slice.
sourcefn 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.
sourcefn get_description(&self) -> &[DescriptionProperty]
fn get_description(&self) -> &[DescriptionProperty]
Get https://schema.org/description from Self
as borrowed slice.
sourcefn take_description(&mut self) -> Vec<DescriptionProperty>
fn take_description(&mut self) -> Vec<DescriptionProperty>
Take https://schema.org/description from Self
as owned vector.
sourcefn get_disambiguating_description(&self) -> &[DisambiguatingDescriptionProperty]
fn get_disambiguating_description(&self) -> &[DisambiguatingDescriptionProperty]
Get https://schema.org/disambiguatingDescription from Self
as borrowed slice.
sourcefn 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.
sourcefn get_identifier(&self) -> &[IdentifierProperty]
fn get_identifier(&self) -> &[IdentifierProperty]
Get https://schema.org/identifier from Self
as borrowed slice.
sourcefn take_identifier(&mut self) -> Vec<IdentifierProperty>
fn take_identifier(&mut self) -> Vec<IdentifierProperty>
Take https://schema.org/identifier from Self
as owned vector.
sourcefn get_image(&self) -> &[ImageProperty]
fn get_image(&self) -> &[ImageProperty]
Get https://schema.org/image from Self
as borrowed slice.
sourcefn take_image(&mut self) -> Vec<ImageProperty>
fn take_image(&mut self) -> Vec<ImageProperty>
Take https://schema.org/image from Self
as owned vector.
sourcefn 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.
sourcefn 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.
sourcefn get_name(&self) -> &[NameProperty]
fn get_name(&self) -> &[NameProperty]
Get https://schema.org/name from Self
as borrowed slice.
sourcefn take_name(&mut self) -> Vec<NameProperty>
fn take_name(&mut self) -> Vec<NameProperty>
Take https://schema.org/name from Self
as owned vector.
sourcefn get_potential_action(&self) -> &[PotentialActionProperty]
fn get_potential_action(&self) -> &[PotentialActionProperty]
Get https://schema.org/potentialAction from Self
as borrowed slice.
sourcefn 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.
sourcefn get_same_as(&self) -> &[SameAsProperty]
fn get_same_as(&self) -> &[SameAsProperty]
Get https://schema.org/sameAs from Self
as borrowed slice.
sourcefn 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.
sourcefn get_subject_of(&self) -> &[SubjectOfProperty]
fn get_subject_of(&self) -> &[SubjectOfProperty]
Get https://schema.org/subjectOf from Self
as borrowed slice.
sourcefn 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.
sourcefn get_url(&self) -> &[UrlProperty]
fn get_url(&self) -> &[UrlProperty]
Get https://schema.org/url from Self
as borrowed slice.
sourcefn take_url(&mut self) -> Vec<UrlProperty>
fn take_url(&mut self) -> Vec<UrlProperty>
Take https://schema.org/url from Self
as owned vector.