[][src]Struct inv_manager::ItemInstance

pub struct ItemInstance {
    pub id: u32,
    pub item_type: u32,
    pub quantity: f32,
    pub model: Option<String>,
    pub serial: Option<String>,
    pub extra: Option<String>,
    pub location: Option<String>,
    pub value: Option<f32>,
    pub opened_at: Option<SystemTime>,
    pub expires_at: Option<SystemTime>,
    pub added_at: Option<SystemTime>,
    pub removed_at: Option<SystemTime>,
}

Fields

id: u32item_type: u32quantity: f32model: Option<String>serial: Option<String>extra: Option<String>location: Option<String>value: Option<f32>opened_at: Option<SystemTime>expires_at: Option<SystemTime>added_at: Option<SystemTime>removed_at: Option<SystemTime>

Trait Implementations

impl Clone for ItemInstance[src]

impl Debug for ItemInstance[src]

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

impl Display for ItemInstance[src]

impl Serialize for ItemInstance[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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.