pub struct Inventory {
pub id: i32,
pub created_at: NaiveDateTime,
pub updated_at: NaiveDateTime,
pub quantity: i32,
pub consumed: i32,
pub unit_price: Option<f32>,
pub notes: Option<String>,
pub part_ver: i32,
pub part_id: i32,
}Fields§
§id: i32§created_at: NaiveDateTime§updated_at: NaiveDateTime§quantity: i32§consumed: i32§unit_price: Option<f32>§notes: Option<String>§part_ver: i32§part_id: i32Trait Implementations§
Source§impl<'ident> Identifiable for &'ident Inventory
impl<'ident> Identifiable for &'ident Inventory
Auto Trait Implementations§
impl Freeze for Inventory
impl RefUnwindSafe for Inventory
impl Send for Inventory
impl Sync for Inventory
impl Unpin for Inventory
impl UnsafeUnpin for Inventory
impl UnwindSafe for Inventory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read more