pub struct CreateLot {Show 14 fields
pub lot_number: Option<String>,
pub sku: String,
pub quantity: Decimal,
pub production_date: Option<DateTime<Utc>>,
pub expiration_date: Option<DateTime<Utc>>,
pub best_before_date: Option<DateTime<Utc>>,
pub supplier_lot: Option<String>,
pub supplier_id: Option<Uuid>,
pub work_order_id: Option<Uuid>,
pub purchase_order_id: Option<Uuid>,
pub cost_per_unit: Option<Decimal>,
pub attributes: Option<Value>,
pub notes: Option<String>,
pub initial_location_id: Option<i32>,
}Expand description
Input for creating a lot
Fields§
§lot_number: Option<String>§sku: String§quantity: Decimal§production_date: Option<DateTime<Utc>>§expiration_date: Option<DateTime<Utc>>§best_before_date: Option<DateTime<Utc>>§supplier_lot: Option<String>§supplier_id: Option<Uuid>§work_order_id: Option<Uuid>§purchase_order_id: Option<Uuid>§cost_per_unit: Option<Decimal>§attributes: Option<Value>§notes: Option<String>§initial_location_id: Option<i32>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateLot
impl<'de> Deserialize<'de> for CreateLot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateLot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateLot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateLot
impl Serialize for CreateLot
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
Auto Trait Implementations§
impl Freeze for CreateLot
impl RefUnwindSafe for CreateLot
impl Send for CreateLot
impl Sync for CreateLot
impl Unpin for CreateLot
impl UnsafeUnpin for CreateLot
impl UnwindSafe for CreateLot
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