Struct minecraft_data_rs::models::food::Food[][src]

pub struct Food {
    pub id: u32,
    pub display_name: String,
    pub stack_size: u8,
    pub name: String,
    pub food_points: u8,
    pub saturation: f32,
    pub effective_quality: f32,
    pub saturation_ratio: f32,
    pub variations: Option<Vec<Variation>>,
}

Fields

id: u32display_name: Stringstack_size: u8name: Stringfood_points: u8saturation: f32effective_quality: f32saturation_ratio: f32variations: Option<Vec<Variation>>

Trait Implementations

impl Clone for Food[src]

impl Debug for Food[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Food

impl Send for Food

impl Sync for Food

impl Unpin for Food

impl UnwindSafe for Food

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.