[][src]Struct ovgu_canteen::Price

pub struct Price {
    pub student: f32,
    pub staff: f32,
    pub guest: f32,
}

This struct represents the price of a meal.

Fields

student: f32

The price for students.

staff: f32

The price for staff.

guest: f32

The price for guests.

Trait Implementations

impl Clone for Price[src]

impl Debug for Price[src]

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

impl FromStr for Price[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Price> for Price[src]

impl Serialize for Price[src]

impl StructuralPartialEq for Price[src]

impl Update for Price[src]

type Err = Error

This is the error type used when the update fails.

Auto Trait Implementations

impl RefUnwindSafe for Price

impl Send for Price

impl Sync for Price

impl Unpin for Price

impl UnwindSafe for Price

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: for<'de> 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.