pub trait FoodEstablishmentTrait {
    // Required methods
    fn get_accepts_reservations(&self) -> &[AcceptsReservationsProperty];
    fn take_accepts_reservations(&mut self) -> Vec<AcceptsReservationsProperty>;
    fn get_has_menu(&self) -> &[HasMenuProperty];
    fn take_has_menu(&mut self) -> Vec<HasMenuProperty>;
    fn get_menu(&self) -> &[MenuProperty];
    fn take_menu(&mut self) -> Vec<MenuProperty>;
    fn get_serves_cuisine(&self) -> &[ServesCuisineProperty];
    fn take_serves_cuisine(&mut self) -> Vec<ServesCuisineProperty>;
    fn get_star_rating(&self) -> &[StarRatingProperty];
    fn take_star_rating(&mut self) -> Vec<StarRatingProperty>;
}
Expand description

This trait is for properties from https://schema.org/FoodEstablishment.

Required Methods§

source

fn get_accepts_reservations(&self) -> &[AcceptsReservationsProperty]

Get https://schema.org/acceptsReservations from Self as borrowed slice.

source

fn take_accepts_reservations(&mut self) -> Vec<AcceptsReservationsProperty>

Take https://schema.org/acceptsReservations from Self as owned vector.

source

fn get_has_menu(&self) -> &[HasMenuProperty]

Get https://schema.org/hasMenu from Self as borrowed slice.

source

fn take_has_menu(&mut self) -> Vec<HasMenuProperty>

Take https://schema.org/hasMenu from Self as owned vector.

source

fn get_menu(&self) -> &[MenuProperty]

👎Deprecated: This schema is superseded by https://schema.org/hasMenu.

Get https://schema.org/menu from Self as borrowed slice.

source

fn take_menu(&mut self) -> Vec<MenuProperty>

👎Deprecated: This schema is superseded by https://schema.org/hasMenu.

Take https://schema.org/menu from Self as owned vector.

source

fn get_serves_cuisine(&self) -> &[ServesCuisineProperty]

Get https://schema.org/servesCuisine from Self as borrowed slice.

source

fn take_serves_cuisine(&mut self) -> Vec<ServesCuisineProperty>

Take https://schema.org/servesCuisine from Self as owned vector.

source

fn get_star_rating(&self) -> &[StarRatingProperty]

Get https://schema.org/starRating from Self as borrowed slice.

source

fn take_star_rating(&mut self) -> Vec<StarRatingProperty>

Take https://schema.org/starRating from Self as owned vector.

Implementors§