pub struct LotTransaction {
pub id: Uuid,
pub lot_id: Uuid,
pub transaction_type: LotTransactionType,
pub quantity: Decimal,
pub reference_type: String,
pub reference_id: Uuid,
pub from_location_id: Option<i32>,
pub to_location_id: Option<i32>,
pub reason: Option<String>,
pub performed_by: Option<String>,
pub created_at: DateTime<Utc>,
}Expand description
Transaction record for lot movements
Fields§
§id: Uuid§lot_id: Uuid§transaction_type: LotTransactionType§quantity: Decimal§reference_type: String§reference_id: Uuid§from_location_id: Option<i32>§to_location_id: Option<i32>§reason: Option<String>§performed_by: Option<String>§created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for LotTransaction
impl Clone for LotTransaction
Source§fn clone(&self) -> LotTransaction
fn clone(&self) -> LotTransaction
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 LotTransaction
impl Debug for LotTransaction
Source§impl<'de> Deserialize<'de> for LotTransaction
impl<'de> Deserialize<'de> for LotTransaction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LotTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LotTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LotTransaction
Source§impl PartialEq for LotTransaction
impl PartialEq for LotTransaction
Source§impl Serialize for LotTransaction
impl Serialize for LotTransaction
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 LotTransaction
Auto Trait Implementations§
impl Freeze for LotTransaction
impl RefUnwindSafe for LotTransaction
impl Send for LotTransaction
impl Sync for LotTransaction
impl Unpin for LotTransaction
impl UnsafeUnpin for LotTransaction
impl UnwindSafe for LotTransaction
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