pub struct BackorderAllocation {
pub id: Uuid,
pub backorder_id: Uuid,
pub sku: String,
pub quantity: Decimal,
pub location_id: Option<i32>,
pub lot_id: Option<Uuid>,
pub status: AllocationStatus,
pub allocated_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
Backorder allocation (reserved inventory for backorder).
Fields§
§id: Uuid§backorder_id: Uuid§sku: String§quantity: Decimal§location_id: Option<i32>§lot_id: Option<Uuid>§status: AllocationStatus§allocated_at: DateTime<Utc>§expires_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for BackorderAllocation
impl Clone for BackorderAllocation
Source§fn clone(&self) -> BackorderAllocation
fn clone(&self) -> BackorderAllocation
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 BackorderAllocation
impl Debug for BackorderAllocation
Source§impl<'de> Deserialize<'de> for BackorderAllocation
impl<'de> Deserialize<'de> for BackorderAllocation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BackorderAllocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BackorderAllocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BackorderAllocation
impl Serialize for BackorderAllocation
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 BackorderAllocation
impl RefUnwindSafe for BackorderAllocation
impl Send for BackorderAllocation
impl Sync for BackorderAllocation
impl Unpin for BackorderAllocation
impl UnsafeUnpin for BackorderAllocation
impl UnwindSafe for BackorderAllocation
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