Trait schema_org_types::CollectionTrait
source · pub trait CollectionTrait {
// Required methods
fn get_collection_size(&self) -> &[CollectionSizeProperty];
fn take_collection_size(&mut self) -> Vec<CollectionSizeProperty>;
}
Expand description
This trait is for properties from https://schema.org/Collection.
Required Methods§
sourcefn get_collection_size(&self) -> &[CollectionSizeProperty]
fn get_collection_size(&self) -> &[CollectionSizeProperty]
Get https://schema.org/collectionSize from Self
as borrowed slice.
sourcefn take_collection_size(&mut self) -> Vec<CollectionSizeProperty>
fn take_collection_size(&mut self) -> Vec<CollectionSizeProperty>
Take https://schema.org/collectionSize from Self
as owned vector.