Trait schema_org_types::WebPageTrait
source · pub trait WebPageTrait {
Show 20 methods
// Required methods
fn get_breadcrumb(&self) -> &[BreadcrumbProperty];
fn take_breadcrumb(&mut self) -> Vec<BreadcrumbProperty>;
fn get_last_reviewed(&self) -> &[LastReviewedProperty];
fn take_last_reviewed(&mut self) -> Vec<LastReviewedProperty>;
fn get_main_content_of_page(&self) -> &[MainContentOfPageProperty];
fn take_main_content_of_page(&mut self) -> Vec<MainContentOfPageProperty>;
fn get_primary_image_of_page(&self) -> &[PrimaryImageOfPageProperty];
fn take_primary_image_of_page(&mut self) -> Vec<PrimaryImageOfPageProperty>;
fn get_related_link(&self) -> &[RelatedLinkProperty];
fn take_related_link(&mut self) -> Vec<RelatedLinkProperty>;
fn get_reviewed_by(&self) -> &[ReviewedByProperty];
fn take_reviewed_by(&mut self) -> Vec<ReviewedByProperty>;
fn get_significant_link(&self) -> &[SignificantLinkProperty];
fn take_significant_link(&mut self) -> Vec<SignificantLinkProperty>;
fn get_significant_links(&self) -> &[SignificantLinksProperty];
fn take_significant_links(&mut self) -> Vec<SignificantLinksProperty>;
fn get_speakable(&self) -> &[SpeakableProperty];
fn take_speakable(&mut self) -> Vec<SpeakableProperty>;
fn get_specialty(&self) -> &[SpecialtyProperty];
fn take_specialty(&mut self) -> Vec<SpecialtyProperty>;
}
Expand description
This trait is for properties from https://schema.org/WebPage.
Required Methods§
Get https://schema.org/breadcrumb from Self
as borrowed slice.
Take https://schema.org/breadcrumb from Self
as owned vector.
sourcefn get_last_reviewed(&self) -> &[LastReviewedProperty]
fn get_last_reviewed(&self) -> &[LastReviewedProperty]
Get https://schema.org/lastReviewed from Self
as borrowed slice.
sourcefn take_last_reviewed(&mut self) -> Vec<LastReviewedProperty>
fn take_last_reviewed(&mut self) -> Vec<LastReviewedProperty>
Take https://schema.org/lastReviewed from Self
as owned vector.
sourcefn get_main_content_of_page(&self) -> &[MainContentOfPageProperty]
fn get_main_content_of_page(&self) -> &[MainContentOfPageProperty]
Get https://schema.org/mainContentOfPage from Self
as borrowed slice.
sourcefn take_main_content_of_page(&mut self) -> Vec<MainContentOfPageProperty>
fn take_main_content_of_page(&mut self) -> Vec<MainContentOfPageProperty>
Take https://schema.org/mainContentOfPage from Self
as owned vector.
sourcefn get_primary_image_of_page(&self) -> &[PrimaryImageOfPageProperty]
fn get_primary_image_of_page(&self) -> &[PrimaryImageOfPageProperty]
Get https://schema.org/primaryImageOfPage from Self
as borrowed slice.
sourcefn take_primary_image_of_page(&mut self) -> Vec<PrimaryImageOfPageProperty>
fn take_primary_image_of_page(&mut self) -> Vec<PrimaryImageOfPageProperty>
Take https://schema.org/primaryImageOfPage from Self
as owned vector.
Get https://schema.org/relatedLink from Self
as borrowed slice.
Take https://schema.org/relatedLink from Self
as owned vector.
sourcefn get_reviewed_by(&self) -> &[ReviewedByProperty]
fn get_reviewed_by(&self) -> &[ReviewedByProperty]
Get https://schema.org/reviewedBy from Self
as borrowed slice.
sourcefn take_reviewed_by(&mut self) -> Vec<ReviewedByProperty>
fn take_reviewed_by(&mut self) -> Vec<ReviewedByProperty>
Take https://schema.org/reviewedBy from Self
as owned vector.
sourcefn get_significant_link(&self) -> &[SignificantLinkProperty]
fn get_significant_link(&self) -> &[SignificantLinkProperty]
Get https://schema.org/significantLink from Self
as borrowed slice.
sourcefn take_significant_link(&mut self) -> Vec<SignificantLinkProperty>
fn take_significant_link(&mut self) -> Vec<SignificantLinkProperty>
Take https://schema.org/significantLink from Self
as owned vector.
sourcefn get_significant_links(&self) -> &[SignificantLinksProperty]
fn get_significant_links(&self) -> &[SignificantLinksProperty]
Get https://schema.org/significantLinks from Self
as borrowed slice.
sourcefn take_significant_links(&mut self) -> Vec<SignificantLinksProperty>
fn take_significant_links(&mut self) -> Vec<SignificantLinksProperty>
Take https://schema.org/significantLinks from Self
as owned vector.
sourcefn get_speakable(&self) -> &[SpeakableProperty]
fn get_speakable(&self) -> &[SpeakableProperty]
Get https://schema.org/speakable from Self
as borrowed slice.
sourcefn take_speakable(&mut self) -> Vec<SpeakableProperty>
fn take_speakable(&mut self) -> Vec<SpeakableProperty>
Take https://schema.org/speakable from Self
as owned vector.
sourcefn get_specialty(&self) -> &[SpecialtyProperty]
fn get_specialty(&self) -> &[SpecialtyProperty]
Get https://schema.org/specialty from Self
as borrowed slice.
sourcefn take_specialty(&mut self) -> Vec<SpecialtyProperty>
fn take_specialty(&mut self) -> Vec<SpecialtyProperty>
Take https://schema.org/specialty from Self
as owned vector.