Trait schema_org_types::ListItemTrait
source · pub trait ListItemTrait {
// Required methods
fn get_item(&self) -> &[ItemProperty];
fn take_item(&mut self) -> Vec<ItemProperty>;
fn get_next_item(&self) -> &[NextItemProperty];
fn take_next_item(&mut self) -> Vec<NextItemProperty>;
fn get_position(&self) -> &[PositionProperty];
fn take_position(&mut self) -> Vec<PositionProperty>;
fn get_previous_item(&self) -> &[PreviousItemProperty];
fn take_previous_item(&mut self) -> Vec<PreviousItemProperty>;
}
Expand description
This trait is for properties from https://schema.org/ListItem.
Required Methods§
sourcefn get_item(&self) -> &[ItemProperty]
fn get_item(&self) -> &[ItemProperty]
Get https://schema.org/item from Self
as borrowed slice.
sourcefn take_item(&mut self) -> Vec<ItemProperty>
fn take_item(&mut self) -> Vec<ItemProperty>
Take https://schema.org/item from Self
as owned vector.
sourcefn get_next_item(&self) -> &[NextItemProperty]
fn get_next_item(&self) -> &[NextItemProperty]
Get https://schema.org/nextItem from Self
as borrowed slice.
sourcefn take_next_item(&mut self) -> Vec<NextItemProperty>
fn take_next_item(&mut self) -> Vec<NextItemProperty>
Take https://schema.org/nextItem from Self
as owned vector.
sourcefn get_position(&self) -> &[PositionProperty]
fn get_position(&self) -> &[PositionProperty]
Get https://schema.org/position from Self
as borrowed slice.
sourcefn take_position(&mut self) -> Vec<PositionProperty>
fn take_position(&mut self) -> Vec<PositionProperty>
Take https://schema.org/position from Self
as owned vector.
sourcefn get_previous_item(&self) -> &[PreviousItemProperty]
fn get_previous_item(&self) -> &[PreviousItemProperty]
Get https://schema.org/previousItem from Self
as borrowed slice.
sourcefn take_previous_item(&mut self) -> Vec<PreviousItemProperty>
fn take_previous_item(&mut self) -> Vec<PreviousItemProperty>
Take https://schema.org/previousItem from Self
as owned vector.