Trait schema_org_types::ArticleTrait
source · pub trait ArticleTrait {
Show 16 methods
// Required methods
fn get_article_body(&self) -> &[ArticleBodyProperty];
fn take_article_body(&mut self) -> Vec<ArticleBodyProperty>;
fn get_article_section(&self) -> &[ArticleSectionProperty];
fn take_article_section(&mut self) -> Vec<ArticleSectionProperty>;
fn get_backstory(&self) -> &[BackstoryProperty];
fn take_backstory(&mut self) -> Vec<BackstoryProperty>;
fn get_page_end(&self) -> &[PageEndProperty];
fn take_page_end(&mut self) -> Vec<PageEndProperty>;
fn get_page_start(&self) -> &[PageStartProperty];
fn take_page_start(&mut self) -> Vec<PageStartProperty>;
fn get_pagination(&self) -> &[PaginationProperty];
fn take_pagination(&mut self) -> Vec<PaginationProperty>;
fn get_speakable(&self) -> &[SpeakableProperty];
fn take_speakable(&mut self) -> Vec<SpeakableProperty>;
fn get_word_count(&self) -> &[WordCountProperty];
fn take_word_count(&mut self) -> Vec<WordCountProperty>;
}
Expand description
This trait is for properties from https://schema.org/Article.
Required Methods§
sourcefn get_article_body(&self) -> &[ArticleBodyProperty]
fn get_article_body(&self) -> &[ArticleBodyProperty]
Get https://schema.org/articleBody from Self
as borrowed slice.
sourcefn take_article_body(&mut self) -> Vec<ArticleBodyProperty>
fn take_article_body(&mut self) -> Vec<ArticleBodyProperty>
Take https://schema.org/articleBody from Self
as owned vector.
sourcefn get_article_section(&self) -> &[ArticleSectionProperty]
fn get_article_section(&self) -> &[ArticleSectionProperty]
Get https://schema.org/articleSection from Self
as borrowed slice.
sourcefn take_article_section(&mut self) -> Vec<ArticleSectionProperty>
fn take_article_section(&mut self) -> Vec<ArticleSectionProperty>
Take https://schema.org/articleSection from Self
as owned vector.
sourcefn get_backstory(&self) -> &[BackstoryProperty]
fn get_backstory(&self) -> &[BackstoryProperty]
Get https://schema.org/backstory from Self
as borrowed slice.
sourcefn take_backstory(&mut self) -> Vec<BackstoryProperty>
fn take_backstory(&mut self) -> Vec<BackstoryProperty>
Take https://schema.org/backstory from Self
as owned vector.
sourcefn get_page_end(&self) -> &[PageEndProperty]
fn get_page_end(&self) -> &[PageEndProperty]
Get https://schema.org/pageEnd from Self
as borrowed slice.
sourcefn take_page_end(&mut self) -> Vec<PageEndProperty>
fn take_page_end(&mut self) -> Vec<PageEndProperty>
Take https://schema.org/pageEnd from Self
as owned vector.
sourcefn get_page_start(&self) -> &[PageStartProperty]
fn get_page_start(&self) -> &[PageStartProperty]
Get https://schema.org/pageStart from Self
as borrowed slice.
sourcefn take_page_start(&mut self) -> Vec<PageStartProperty>
fn take_page_start(&mut self) -> Vec<PageStartProperty>
Take https://schema.org/pageStart from Self
as owned vector.
sourcefn get_pagination(&self) -> &[PaginationProperty]
fn get_pagination(&self) -> &[PaginationProperty]
Get https://schema.org/pagination from Self
as borrowed slice.
sourcefn take_pagination(&mut self) -> Vec<PaginationProperty>
fn take_pagination(&mut self) -> Vec<PaginationProperty>
Take https://schema.org/pagination 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_word_count(&self) -> &[WordCountProperty]
fn get_word_count(&self) -> &[WordCountProperty]
Get https://schema.org/wordCount from Self
as borrowed slice.
sourcefn take_word_count(&mut self) -> Vec<WordCountProperty>
fn take_word_count(&mut self) -> Vec<WordCountProperty>
Take https://schema.org/wordCount from Self
as owned vector.