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