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§
sourcefn get_accepts_reservations(&self) -> &[AcceptsReservationsProperty]
fn get_accepts_reservations(&self) -> &[AcceptsReservationsProperty]
Get https://schema.org/acceptsReservations from Self
as borrowed slice.
sourcefn take_accepts_reservations(&mut self) -> Vec<AcceptsReservationsProperty>
fn take_accepts_reservations(&mut self) -> Vec<AcceptsReservationsProperty>
Take https://schema.org/acceptsReservations from Self
as owned vector.
Get https://schema.org/hasMenu from Self
as borrowed slice.
Take https://schema.org/hasMenu from Self
as owned vector.
👎Deprecated: This schema is superseded by https://schema.org/hasMenu.
Get https://schema.org/menu from Self
as borrowed slice.
👎Deprecated: This schema is superseded by https://schema.org/hasMenu.
Take https://schema.org/menu from Self
as owned vector.
sourcefn get_serves_cuisine(&self) -> &[ServesCuisineProperty]
fn get_serves_cuisine(&self) -> &[ServesCuisineProperty]
Get https://schema.org/servesCuisine from Self
as borrowed slice.
sourcefn take_serves_cuisine(&mut self) -> Vec<ServesCuisineProperty>
fn take_serves_cuisine(&mut self) -> Vec<ServesCuisineProperty>
Take https://schema.org/servesCuisine from Self
as owned vector.
sourcefn get_star_rating(&self) -> &[StarRatingProperty]
fn get_star_rating(&self) -> &[StarRatingProperty]
Get https://schema.org/starRating from Self
as borrowed slice.
sourcefn take_star_rating(&mut self) -> Vec<StarRatingProperty>
fn take_star_rating(&mut self) -> Vec<StarRatingProperty>
Take https://schema.org/starRating from Self
as owned vector.