pub struct LocationInventory {
pub location_id: i32,
pub sku: String,
pub lot_id: Option<Uuid>,
pub quantity_on_hand: Decimal,
pub quantity_reserved: Decimal,
pub quantity_available: Decimal,
pub updated_at: DateTime<Utc>,
}Expand description
Inventory at a specific location
Fields§
§location_id: i32§sku: String§lot_id: Option<Uuid>§quantity_on_hand: Decimal§quantity_reserved: Decimal§quantity_available: Decimal§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for LocationInventory
impl Clone for LocationInventory
Source§fn clone(&self) -> LocationInventory
fn clone(&self) -> LocationInventory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocationInventory
impl Debug for LocationInventory
Source§impl<'de> Deserialize<'de> for LocationInventory
impl<'de> Deserialize<'de> for LocationInventory
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocationInventory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocationInventory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LocationInventory
Source§impl PartialEq for LocationInventory
impl PartialEq for LocationInventory
Source§impl Serialize for LocationInventory
impl Serialize for LocationInventory
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LocationInventory
Auto Trait Implementations§
impl Freeze for LocationInventory
impl RefUnwindSafe for LocationInventory
impl Send for LocationInventory
impl Sync for LocationInventory
impl Unpin for LocationInventory
impl UnsafeUnpin for LocationInventory
impl UnwindSafe for LocationInventory
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