Trait schema_org_types::BookTrait
source · pub trait BookTrait {
// Required methods
fn get_abridged(&self) -> &[AbridgedProperty];
fn take_abridged(&mut self) -> Vec<AbridgedProperty>;
fn get_book_edition(&self) -> &[BookEditionProperty];
fn take_book_edition(&mut self) -> Vec<BookEditionProperty>;
fn get_book_format(&self) -> &[BookFormatProperty];
fn take_book_format(&mut self) -> Vec<BookFormatProperty>;
fn get_illustrator(&self) -> &[IllustratorProperty];
fn take_illustrator(&mut self) -> Vec<IllustratorProperty>;
fn get_isbn(&self) -> &[IsbnProperty];
fn take_isbn(&mut self) -> Vec<IsbnProperty>;
fn get_number_of_pages(&self) -> &[NumberOfPagesProperty];
fn take_number_of_pages(&mut self) -> Vec<NumberOfPagesProperty>;
}
Expand description
This trait is for properties from https://schema.org/Book.
Required Methods§
sourcefn get_abridged(&self) -> &[AbridgedProperty]
fn get_abridged(&self) -> &[AbridgedProperty]
Get https://schema.org/abridged from Self
as borrowed slice.
sourcefn take_abridged(&mut self) -> Vec<AbridgedProperty>
fn take_abridged(&mut self) -> Vec<AbridgedProperty>
Take https://schema.org/abridged from Self
as owned vector.
sourcefn get_book_edition(&self) -> &[BookEditionProperty]
fn get_book_edition(&self) -> &[BookEditionProperty]
Get https://schema.org/bookEdition from Self
as borrowed slice.
sourcefn take_book_edition(&mut self) -> Vec<BookEditionProperty>
fn take_book_edition(&mut self) -> Vec<BookEditionProperty>
Take https://schema.org/bookEdition from Self
as owned vector.
sourcefn get_book_format(&self) -> &[BookFormatProperty]
fn get_book_format(&self) -> &[BookFormatProperty]
Get https://schema.org/bookFormat from Self
as borrowed slice.
sourcefn take_book_format(&mut self) -> Vec<BookFormatProperty>
fn take_book_format(&mut self) -> Vec<BookFormatProperty>
Take https://schema.org/bookFormat from Self
as owned vector.
sourcefn get_illustrator(&self) -> &[IllustratorProperty]
fn get_illustrator(&self) -> &[IllustratorProperty]
Get https://schema.org/illustrator from Self
as borrowed slice.
sourcefn take_illustrator(&mut self) -> Vec<IllustratorProperty>
fn take_illustrator(&mut self) -> Vec<IllustratorProperty>
Take https://schema.org/illustrator from Self
as owned vector.
sourcefn get_isbn(&self) -> &[IsbnProperty]
fn get_isbn(&self) -> &[IsbnProperty]
Get https://schema.org/isbn from Self
as borrowed slice.
sourcefn take_isbn(&mut self) -> Vec<IsbnProperty>
fn take_isbn(&mut self) -> Vec<IsbnProperty>
Take https://schema.org/isbn from Self
as owned vector.
sourcefn get_number_of_pages(&self) -> &[NumberOfPagesProperty]
fn get_number_of_pages(&self) -> &[NumberOfPagesProperty]
Get https://schema.org/numberOfPages from Self
as borrowed slice.
sourcefn take_number_of_pages(&mut self) -> Vec<NumberOfPagesProperty>
fn take_number_of_pages(&mut self) -> Vec<NumberOfPagesProperty>
Take https://schema.org/numberOfPages from Self
as owned vector.