pub struct InventoryTransaction {
pub id: i64,
pub item_id: i64,
pub location_id: i32,
pub transaction_type: TransactionType,
pub quantity: Decimal,
pub reference_type: Option<String>,
pub reference_id: Option<String>,
pub reason: Option<String>,
pub created_by: Option<String>,
pub created_at: DateTime<Utc>,
}Expand description
Inventory transaction (audit trail)
Fields§
§id: i64§item_id: i64§location_id: i32§transaction_type: TransactionType§quantity: Decimal§reference_type: Option<String>§reference_id: Option<String>§reason: Option<String>§created_by: Option<String>§created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for InventoryTransaction
impl Clone for InventoryTransaction
Source§fn clone(&self) -> InventoryTransaction
fn clone(&self) -> InventoryTransaction
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 InventoryTransaction
impl Debug for InventoryTransaction
Source§impl<'de> Deserialize<'de> for InventoryTransaction
impl<'de> Deserialize<'de> for InventoryTransaction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InventoryTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InventoryTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InventoryTransaction
Source§impl PartialEq for InventoryTransaction
impl PartialEq for InventoryTransaction
Source§impl Serialize for InventoryTransaction
impl Serialize for InventoryTransaction
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 InventoryTransaction
Auto Trait Implementations§
impl Freeze for InventoryTransaction
impl RefUnwindSafe for InventoryTransaction
impl Send for InventoryTransaction
impl Sync for InventoryTransaction
impl Unpin for InventoryTransaction
impl UnsafeUnpin for InventoryTransaction
impl UnwindSafe for InventoryTransaction
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