Trait schema_org_types::MenuTrait
source · pub trait MenuTrait {
// Required methods
fn get_has_menu_item(&self) -> &[HasMenuItemProperty];
fn take_has_menu_item(&mut self) -> Vec<HasMenuItemProperty>;
fn get_has_menu_section(&self) -> &[HasMenuSectionProperty];
fn take_has_menu_section(&mut self) -> Vec<HasMenuSectionProperty>;
}
Expand description
This trait is for properties from https://schema.org/Menu.
Required Methods§
Get https://schema.org/hasMenuItem from Self
as borrowed slice.
Take https://schema.org/hasMenuItem from Self
as owned vector.
Get https://schema.org/hasMenuSection from Self
as borrowed slice.
Take https://schema.org/hasMenuSection from Self
as owned vector.