[][src]Struct ovgu_canteen::Meal

pub struct Meal {
    pub name: String,
    pub price: Price,
    pub symbols: Vec<Symbol>,
    pub additives: Vec<Additive>,
    pub allergenics: Vec<Allergenic>,
}

A Meal holds the meals name, the price, several symbols, additives, and allergenics.

Fields

name: String

The name of the meal.

price: Price

The price of the meal.

symbols: Vec<Symbol>

Symbols that the meal is annotated with.

additives: Vec<Additive>

Additives of the meal.

allergenics: Vec<Allergenic>

Allergenics contained in the meal.

Trait Implementations

impl Clone for Meal[src]

impl Debug for Meal[src]

impl<'de> Deserialize<'de> for Meal[src]

impl FromElement for Meal[src]

type Err = Error

This is the error type used when the creation from a HTML element fails.

impl PartialEq<Meal> for Meal[src]

impl Serialize for Meal[src]

impl Update for Meal[src]

type Err = Error

This is the error type used when the update fails.

Auto Trait Implementations

impl RefUnwindSafe for Meal

impl Send for Meal

impl Sync for Meal

impl Unpin for Meal

impl UnwindSafe for Meal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.